fixed wxWidget 2.9 compatibility problem.

This commit is contained in:
charras 2010-04-02 05:19:33 +00:00
parent e5bfcbbd91
commit 50f5eb371b
2 changed files with 5 additions and 5 deletions

View File

@ -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 pic_programmer pspice "sonde xilinx" test_xil_95108 video
DESTINATION ${KICAD_DEMOS} DESTINATION ${KICAD_DEMOS}
COMPONENT resources COMPONENT resources

View File

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