From 5cdace59e885a231c1bf5bdb8a8c690a9085fdc6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 1 Jun 2015 00:22:52 +0200 Subject: [PATCH] Remove redundant call to wxGenericDirCtrl::Init() from Create(). Only ctors call Init(), by convention, and doing it again from Create() is unnecessary. --- src/generic/dirctrlg.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index de483960a3..92d193bdff 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -414,8 +414,6 @@ bool wxGenericDirCtrl::Create(wxWindow *parent, SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT)); - Init(); - long treeStyle = wxTR_HAS_BUTTONS; // On Windows CE, if you hide the root, you get a crash when