← Back to team overview

kicad-developers team mailing list archive

Text selection over hierarchical sheet patch

 

Hi,

Continuing on my patch for label selection, the attached patch includes also
textitems. It makes selecting a text item over a hierarchical sheet
possible.

Regards,

Marco
--- eeschema/controle.cpp	2010-07-21 01:37:34 +0000
+++ eeschema/controle.cpp	2010-08-22 17:41:04 +0000
@@ -175,7 +175,7 @@
         return DrawStruct;
     }
 
-    DrawStruct = (SCH_ITEM*) PickStruct( refpoint, GetScreen(), LABELITEM );
+    DrawStruct = (SCH_ITEM*) PickStruct( refpoint, GetScreen(), LABELITEM | TEXTITEM );
     if( DrawStruct )
     {
         ClearMsgPanel();

Follow ups