[PythonCAD] R25 bug
Wilbert Knol
w.knol at niwa.co.nz
Fri Jun 3 14:01:40 CEST 2005
On Sat, 28 May 2005 05:59, Michele Petrazzo wrote:
> - I draw an object (line, circle, etc..), I select move (one of the
> three), I select the first point to move, the second and after I select
> no objects then the program ask me for select an object (I click two
> times into the canvas). After I re-click for the distance (first and
> second point), but now I click over the object, and I receive this error:
Well spotted. I see the same thing here. First time I move an empty selection.
All is well. Nothing gets moved (as expected). Now, when I try to move an
object, I get the 'list index out of range' error:
Traceback (most recent call last):
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkimage.py",
line 127, in da_general_event
event, _tool)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkmodify.py",
line 109, in move_end_button_press_cb
move_objects(gtkimage, _objlist, tool)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkmodify.py",
line 83, in move_objects
PythonCAD.Generic.move.move_objects(_active_layer, objlist, _dx, _dy)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/move.py", line 339,
in move_objects
_move_point(layer, _obj, _dx, _dy)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/move.py", line 74, in
_move_point
layer.addObject(_np)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/layer.py", line 427,
in addObject
obj.setParent(self)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", line 305,
in setParent
Entity.addChild(parent, self)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", line 345,
in addChild
self.modified()
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", line 212,
in modified
self.sendMessage('modified')
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/message.py", line
114, in sendMessage
_method(self, *args)
File "/home/wk/src/PythonCAD-DS1-R25/PythonCAD/Generic/image.py", line 1019,
in _objectModified
_undo[_i].append((_pid, _oid))
IndexError: list index out of range
I am using DS1-R25 with Art's latest patch.
Wilbert Knol.
More information about the PythonCAD
mailing list