It used to always return false which didn't allow the code using to decide
whether the default splitter position should be used or not.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69582
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool Restore()
{
int pos;
- if ( RestoreValue(wxPERSIST_SPLITTER_POSITION, &pos) )
- {
- if ( pos == -1 )
- Get()->Unsplit();
- else
- Get()->SetSashPosition(pos);
- }
-
- return false;
+ if ( !RestoreValue(wxPERSIST_SPLITTER_POSITION, &pos) )
+ return false;
+
+ if ( pos == -1 )
+ Get()->Unsplit();
+ else
+ Get()->SetSashPosition(pos);
+
+ return true;
}
virtual wxString GetKind() const { return wxPERSIST_SPLITTER_KIND; }