Fix uninitialised variable.
authorCarl Hetherington <cth@carlh.net>
Tue, 24 Nov 2020 21:50:39 +0000 (22:50 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 24 Nov 2020 21:50:39 +0000 (22:50 +0100)
src/wx/content_panel.cc

index 9ec44a9f22d1bf9bd85e577460191473aabeff0e..1a15d241d774871631c50fc42fd6d57a64d7c031 100644 (file)
@@ -803,6 +803,7 @@ ContentPanel::panels () const
 
 LimitedSplitter::LimitedSplitter (wxWindow* parent)
        : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE)
+       , _first_shown (false)
        , _top_panel_minimum_size (350)
 {
        /* This value doesn't really mean much but we just want to stop double-click on the
@@ -828,7 +829,7 @@ LimitedSplitter::first_shown (wxWindow* top, wxWindow* bottom)
                /* Fallback for when GetFromWindow fails for reasons that aren't clear */
                SplitHorizontally (top, bottom, -600);
        }
-
+       _first_shown = true;
 }