Pl_Editor: Fix wx28 compatibility
This commit is contained in:
parent
ec7ee344b5
commit
9076bfc9f7
|
@ -26,6 +26,7 @@
|
||||||
* @file design_tree_frame.cpp
|
* @file design_tree_frame.cpp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <wx/imaglist.h>
|
||||||
#include <fctsys.h>
|
#include <fctsys.h>
|
||||||
#include <worksheet_shape_builder.h>
|
#include <worksheet_shape_builder.h>
|
||||||
#include <class_worksheet_dataitem.h>
|
#include <class_worksheet_dataitem.h>
|
||||||
|
|
|
@ -505,15 +505,14 @@ void PL_EDITOR_FRAME::RedrawActiveWindow( wxDC* aDC, bool aEraseBg )
|
||||||
void PL_EDITOR_FRAME::RebuildDesignTree()
|
void PL_EDITOR_FRAME::RebuildDesignTree()
|
||||||
{
|
{
|
||||||
const WORKSHEET_LAYOUT& pglayout = WORKSHEET_LAYOUT::GetTheInstance();
|
const WORKSHEET_LAYOUT& pglayout = WORKSHEET_LAYOUT::GetTheInstance();
|
||||||
wxString name;
|
|
||||||
|
|
||||||
for( unsigned ii = 0; ii < pglayout.GetCount(); ii++ )
|
for( unsigned ii = 0; ii < pglayout.GetCount(); ii++ )
|
||||||
{
|
{
|
||||||
WORKSHEET_DATAITEM* item = pglayout.GetItem( ii );
|
WORKSHEET_DATAITEM* item = pglayout.GetItem( ii );
|
||||||
if( item->m_Name.IsEmpty() )
|
if( item->m_Name.IsEmpty() )
|
||||||
{
|
{
|
||||||
name.Printf( wxT("item%d:%s"), ii+1, item->GetClassName());
|
item->m_Name = wxString::Format( wxT("item%d:%s"), ii+1,
|
||||||
item->m_Name = name;
|
GetChars(item->GetClassName()) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue