[PythonCAD] [PATCH] Two small patches fixing typos

Art Haas ahaas at airmail.net
Fri Mar 10 17:41:36 CET 2006


Hi.

I found these two (dumb) typos while working yesterday. I am embarrassed
they slipped through.

Art

Index: PythonCAD/Generic/arc.py
===================================================================
--- PythonCAD/Generic/arc.py	(revision 2204)
+++ PythonCAD/Generic/arc.py	(revision 2205)
@@ -728,7 +728,7 @@
         _aymin = _y - _r - _t
         _aymax = _y + _r + _t
         _arcs = []
-        for _arc in self.getInRegion(_xmin, _ymin, _xmax, _ymax):
+        for _arc in self.getInRegion(_axmin, _aymin, _axmax, _aymax):
             _cx, _cy = _arc.getCenter().getCoords()
             if ((abs(_cx - _x) < _t) and
                 (abs(_cy - _y) < _t) and

Index: PythonCAD/Generic/move.py
===================================================================
--- PythonCAD/Generic/move.py	(revision 2205)
+++ PythonCAD/Generic/move.py	(revision 2206)
@@ -40,7 +40,7 @@
 from PythonCAD.Generic import util
 
 def _adjust_dimensions(op, np):
-    _users = point.getUsers()
+    _users = op.getUsers()
     for _user in _users:
         if isinstance(_user, Dimension):
             if isinstance(_user, LinearDimension):
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822


More information about the PythonCAD mailing list