This commit is contained in:
supermerill 2021-05-27 17:45:37 +02:00
parent 95535e68f6
commit a560103ce2
2 changed files with 3 additions and 3 deletions

View File

@ -353,8 +353,8 @@ void MainFrame::update_layout()
#endif //__WXMSW__
m_layout = layout;
m_layerpreview_menu_item->Enable(m_layout == ESettingsLayout::Tabs || m_layout == ESettingsLayout::Old);
if (m_plater && m_layerpreview_menu_item)
m_layerpreview_menu_item->Enable(m_layout == ESettingsLayout::Tabs || m_layout == ESettingsLayout::Old);
// From the very beginning the Print settings should be selected
m_last_selected_setting_tab = 0;

View File

@ -118,7 +118,7 @@ class MainFrame : public DPIFrame
// vector of a MenuBar items changeable in respect to printer technology
std::vector<wxMenuItem*> m_changeable_menu_items;
wxMenuItem* m_layerpreview_menu_item;
wxMenuItem* m_layerpreview_menu_item = nullptr;
wxFileHistory m_recent_projects;