From 3ad179007605a1537fe06005c7658ebbd33eb08f Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Tue, 22 Apr 2014 22:42:02 +0800 Subject: [PATCH] Fixed an updating problem --- src/insertpanel.cpp | 8 -------- src/locationpanel.cpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/insertpanel.cpp b/src/insertpanel.cpp index 04a40c2..391a284 100644 --- a/src/insertpanel.cpp +++ b/src/insertpanel.cpp @@ -105,11 +105,7 @@ void InsertPanel::update ( for ( it = entitySet.begin(); it != entitySet.end(); ++it ) list->Append ( *it ); list->Show ( true ); -#if wxCHECK_VERSION(2,9,0) - list->Update(); -#else sizer->Layout(); -#endif return; } @@ -142,11 +138,7 @@ void InsertPanel::update ( for ( it = elementSet.begin(); it != elementSet.end(); ++it ) list->Append ( *it ); list->Show ( true ); -#if wxCHECK_VERSION(2,9,0) - list->Update(); -#else sizer->Layout(); -#endif } void InsertPanel::OnEnter ( wxCommandEvent& event ) diff --git a/src/locationpanel.cpp b/src/locationpanel.cpp index e7e0983..5c6a8c3 100644 --- a/src/locationpanel.cpp +++ b/src/locationpanel.cpp @@ -90,11 +90,7 @@ void LocationPanel::update ( structureEdit->SetReadOnly ( false ); structureEdit->SetText ( structure ); structureEdit->SetReadOnly ( true ); -#if wxCHECK_VERSION(2,9,0) - structureEdit->Update(); -#else sizer->Layout(); -#endif } else {