Pl_Editor: Fix wx28 compatibility

This commit is contained in:
Camille Delbegue 2013-07-23 08:18:59 +02:00 committed by jean-pierre charras
parent ec7ee344b5
commit 9076bfc9f7
2 changed files with 3 additions and 3 deletions

View File

@ -26,6 +26,7 @@
* @file design_tree_frame.cpp
*/
#include <wx/imaglist.h>
#include <fctsys.h>
#include <worksheet_shape_builder.h>
#include <class_worksheet_dataitem.h>

View File

@ -505,15 +505,14 @@ void PL_EDITOR_FRAME::RedrawActiveWindow( wxDC* aDC, bool aEraseBg )
void PL_EDITOR_FRAME::RebuildDesignTree()
{
const WORKSHEET_LAYOUT& pglayout = WORKSHEET_LAYOUT::GetTheInstance();
wxString name;
for( unsigned ii = 0; ii < pglayout.GetCount(); ii++ )
{
WORKSHEET_DATAITEM* item = pglayout.GetItem( ii );
if( item->m_Name.IsEmpty() )
{
name.Printf( wxT("item%d:%s"), ii+1, item->GetClassName());
item->m_Name = name;
item->m_Name = wxString::Format( wxT("item%d:%s"), ii+1,
GetChars(item->GetClassName()) );
}
}