mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
Fixed warning
This commit is contained in:
parent
d15055e547
commit
7a7108b2ad
1 changed files with 1 additions and 1 deletions
|
@ -658,7 +658,7 @@ void MainFrame::init_tabpanel()
|
||||||
#endif
|
#endif
|
||||||
#if ENABLE_VALIDATE_CUSTOM_GCODE
|
#if ENABLE_VALIDATE_CUSTOM_GCODE
|
||||||
if (int old_selection = e.GetOldSelection();
|
if (int old_selection = e.GetOldSelection();
|
||||||
old_selection != wxNOT_FOUND && old_selection < m_tabpanel->GetPageCount()) {
|
old_selection != wxNOT_FOUND && old_selection < static_cast<int>(m_tabpanel->GetPageCount())) {
|
||||||
Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(old_selection));
|
Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(old_selection));
|
||||||
if (old_tab)
|
if (old_tab)
|
||||||
old_tab->validate_custom_gcodes();
|
old_tab->validate_custom_gcodes();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue