Fix bug in LD_Viewer when selecting group of elements, wire selection was excluded in free drawing mode
authorLaurent Bessard
Mon, 03 Dec 2012 12:31:27 +0100
changeset 890 b3cafb73c5e9
parent 889 ac18acb6917f
child 891 39f355a535d8
Fix bug in LD_Viewer when selecting group of elements, wire selection was excluded in free drawing mode
editors/LDViewer.py
--- 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):