Skip to content

Commit 68ed092

Browse files
A possible fix for #1766
1 parent 33d4e3c commit 68ed092

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ConfigDialogue.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ ConfigDialogue::ConfigDialogue(wxWindow *parent, Configuration *cfg)
177177
SetSheetOuterBorder(3);
178178

179179
SetName("Configuration");
180+
m_notebook = GetBookCtrl();
180181

182+
#if defined __WXOSX__
183+
#else
181184
int imgSize = GetImageSize();
182185
m_imageList = std::unique_ptr<wxImageList>(new wxImageList(imgSize, imgSize,false,0));
183186
m_imageList->Add(ArtProvider::GetImage(this, wxT("editing"), imgSize, EDITING_SVG_GZ, EDITING_SVG_GZ_SIZE));
@@ -193,11 +196,6 @@ ConfigDialogue::ConfigDialogue(wxWindow *parent, Configuration *cfg)
193196
MEDIA_PLAYBACK_START_CONFDIALOGUE_SVG_GZ_SIZE));
194197
m_imageList->Add(ArtProvider::GetImage(this, wxT("edit-undo"), imgSize, VIEW_REFRESH_SVG_GZ,
195198
VIEW_REFRESH_SVG_GZ_SIZE));
196-
197-
m_notebook = GetBookCtrl();
198-
199-
#if defined __WXOSX__
200-
#else
201199
m_notebook->SetImageList(m_imageList.get());
202200
#endif
203201
m_notebook->AddPage(CreateWorksheetPanel(), _("Worksheet"), true, 0);

0 commit comments

Comments
 (0)