Commit 9076bfc9 authored by Camille Delbegue's avatar Camille Delbegue Committed by jean-pierre charras

Pl_Editor: Fix wx28 compatibility

parent ec7ee344
......@@ -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()) );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment