mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +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,7 +368,8 @@ void HistoryWindow::sync_history_data() {
|
||||
delete_button->Bind(wxEVT_BUTTON, [this, gbSizer, i, &result](auto& e) {
|
||||
for (int j = 0; j < HISTORY_WINDOW_ITEMS_COUNT; j++) {
|
||||
auto item = gbSizer->FindItemAtPosition({ i, j });
|
||||
item->GetWindow()->Hide();
|
||||
if (item)
|
||||
item->GetWindow()->Hide();
|
||||
}
|
||||
gbSizer->SetEmptyCellSize({ 0,0 });
|
||||
m_history_data_panel->Layout();
|
||||
|
||||
Reference in New Issue
Block a user