Pl_Editor: Fix wx28 compatibility
This commit is contained in:
parent
ec7ee344b5
commit
9076bfc9f7
pagelayout_editor
|
@ -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>
|
||||
|
|
|
@ -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()) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue