]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxPropertyGridPage::DoSetSplitterPosition() infinite recursion
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 15 Nov 2008 10:11:52 +0000 (10:11 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 15 Nov 2008 10:11:52 +0000 (10:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/manager.h
src/propgrid/manager.cpp

index 26ff6a868885b565b06889656cc53c1da31a3ce3..c3768ab07a8d8dab8e76d1153181e43e839559f0 100644 (file)
@@ -166,13 +166,6 @@ protected:
                                         bool allPages = false,
                                         bool fromAutoCenter = false );
 
-    /** Propagate to other pages.
-    */
-    void DoSetSplitterPositionThisPage( int pos, int splitterColumn = 0 )
-    {
-        wxPropertyGridPageState::DoSetSplitterPosition( pos, splitterColumn );
-    }
-
     /** Page label (may be referred as name in some parts of documentation).
         Can be set in constructor, or passed in
         wxPropertyGridManager::AddPage(), but *not* in both.
index 9c69c43d8d776cf26e81922234fd00ee75fbe9c8..96494fea55bc79d175d1a0ab3ba60a6b2c009c1b 100644 (file)
@@ -210,12 +210,15 @@ void wxPropertyGridPage::SetSplitterPosition( int splitterPos, int col )
 void wxPropertyGridPage::DoSetSplitterPosition( int pos,
                                                 int splitterColumn,
                                                 bool allPages,
-                                                bool WXUNUSED(fromAutoCenter) )
+                                                bool fromAutoCenter )
 {
     if ( allPages && m_manager->GetPageCount() )
         m_manager->SetSplitterPosition( pos, splitterColumn );
     else
-        DoSetSplitterPositionThisPage( pos, splitterColumn );
+        wxPropertyGridPageState::DoSetSplitterPosition( pos,
+                                                        splitterColumn,
+                                                        allPages,
+                                                        fromAutoCenter );
 }
 
 // -----------------------------------------------------------------------
@@ -1675,7 +1678,7 @@ void wxPropertyGridManager::SetSplitterPosition( int pos, int splitterColumn )
     for ( i=0; i<GetPageCount(); i++ )
     {
         wxPropertyGridPage* page = GetPage(i);
-        page->DoSetSplitterPositionThisPage( pos, splitterColumn );
+        page->DoSetSplitterPosition( pos, splitterColumn, false );
     }
 
     m_pPropGrid->SetInternalFlag(wxPG_FL_SPLITTER_PRE_SET);