Browse Source

fixed wxWidget 2.9 compatibility problem.

pull/1/head
charras 16 years ago
parent
commit
50f5eb371b
  1. 2
      demos/CMakeLists.txt
  2. 8
      eeschema/class_sch_cmp_field.cpp

2
demos/CMakeLists.txt

@ -1,4 +1,4 @@
install(DIRECTORY ecc83 electric flat_hierarchy interf_u microwave
install(DIRECTORY complex_hierarchy ecc83 electric flat_hierarchy interf_u microwave
pic_programmer pspice "sonde xilinx" test_xil_95108 video
DESTINATION ${KICAD_DEMOS}
COMPONENT resources

8
eeschema/class_sch_cmp_field.cpp

@ -434,14 +434,14 @@ bool SCH_FIELD::Matches( wxFindReplaceData& aSearchData, void * aAuxData )
int part_id = pSch->GetUnitSelection( sheet );
#if defined(KICAD_GOST)
fulltext.Append( '.' );
part_id = '1' - 1 + part_id;
part_id += '1' - 1;
#else
part_id = 'A' - 1 + part_id;
part_id += 'A' - 1;
#endif
fulltext.Append( part_id );
fulltext.Append( (char)part_id );
}
return SCH_ITEM::Matches( fulltext, aSearchData );
}
return SCH_ITEM::Matches( m_Text, aSearchData );
}
Loading…
Cancel
Save