mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
FIX: crash when delete cali value
jira: STUDIO-14176 Change-Id: I3d59c8ab60842509c1166cff92ff329d1a673038 (cherry picked from commit 45d4e584228e50026117a83f61afee45dcee09b1)
This commit is contained in:
@@ -368,6 +368,7 @@ void HistoryWindow::sync_history_data() {
|
|||||||
delete_button->Bind(wxEVT_BUTTON, [this, gbSizer, i, &result](auto& e) {
|
delete_button->Bind(wxEVT_BUTTON, [this, gbSizer, i, &result](auto& e) {
|
||||||
for (int j = 0; j < HISTORY_WINDOW_ITEMS_COUNT; j++) {
|
for (int j = 0; j < HISTORY_WINDOW_ITEMS_COUNT; j++) {
|
||||||
auto item = gbSizer->FindItemAtPosition({ i, j });
|
auto item = gbSizer->FindItemAtPosition({ i, j });
|
||||||
|
if (item)
|
||||||
item->GetWindow()->Hide();
|
item->GetWindow()->Hide();
|
||||||
}
|
}
|
||||||
gbSizer->SetEmptyCellSize({ 0,0 });
|
gbSizer->SetEmptyCellSize({ 0,0 });
|
||||||
|
|||||||
Reference in New Issue
Block a user