mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Revert "Fix Compile Warnings (#5963)"
This reverts commit b83e16dbdd.
Found regressions like auto orientation didn't work anymore after this change, revert it
This commit is contained in:
@@ -24,7 +24,7 @@ static wxWindow *GetScrollParent(wxWindow *pWindow)
|
||||
wxWindow *pWin = pWindow;
|
||||
while (pWin->GetParent()) {
|
||||
auto pWin2 = pWin->GetParent();
|
||||
if (dynamic_cast<wxScrollHelper *>(pWin2))
|
||||
if (auto top = dynamic_cast<wxScrollHelper *>(pWin2))
|
||||
return dynamic_cast<wxWindow *>(pWin);
|
||||
pWin = pWin2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user