beremiz

Parents ac18acb6917f
Children 39f355a535d8
Fix bug in LD_Viewer when selecting group of elements, wire selection was excluded in free drawing mode
--- a/editors/LDViewer.py Mon Dec 03 10:09:17 2012 +0100
+++ b/editors/LDViewer.py Mon Dec 03 12:31:27 2012 +0100
@@ -284,6 +284,9 @@
return None
def SearchElements(self, bbox):
+ if self.GetDrawingMode() == FREEDRAWING_MODE:
+ return Viewer.SearchElements(self, bbox)
+
elements = []
for element in self.Blocks.values() + self.Comments.values():
if element.IsInSelection(bbox):