diff -r 1e1b632c7a41 -r 08c26c62f5a7 graphics/LD_Objects.py --- a/graphics/LD_Objects.py Fri Sep 09 11:58:53 2011 +0200 +++ b/graphics/LD_Objects.py Fri Sep 09 17:19:35 2011 +0200 @@ -308,8 +308,9 @@ movey = round(float(self.Pos.y + position.y + movey) / float(scaling[1])) * scaling[1] - self.Pos.y - position.y self.MoveConnector(handle, movey) return 0, movey - else: + elif self.Parent.GetDrawingMode() == FREEDRAWING_MODE: return Graphic_Element.ProcessDragging(self, movex, movey, event, scaling) + return 0, 0 # Refreshes the power rail model def RefreshModel(self, move=True): @@ -439,6 +440,8 @@ return rect def ProcessDragging(self, movex, movey, event, scaling): + if self.Parent.GetDrawingMode() != FREEDRAWING_MODE: + movex = movey = 0 return Graphic_Element.ProcessDragging(self, movex, movey, event, scaling, height_fac = 2) # Forbids to change the contact size @@ -718,6 +721,8 @@ return rect def ProcessDragging(self, movex, movey, event, scaling): + if self.Parent.GetDrawingMode() != FREEDRAWING_MODE: + movex = movey = 0 return Graphic_Element.ProcessDragging(self, movex, movey, event, scaling, height_fac = 2) # Forbids to change the Coil size