From 44fd34d4f7ddc3f51f710757058022eb5aa145f0 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Fri, 21 Feb 2025 11:04:10 +0800 Subject: [PATCH] FIX:Array out of bounds protection jira: STUDIO-10538 Change-Id: Id924495fe4edcedf48e79fa0deffdd6bb98d69cf --- src/slic3r/GUI/ReleaseNote.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index 69cb2a0c4..a0f0669b4 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -1173,8 +1173,11 @@ void PrintErrorDialog::msw_rescale() { void PrintErrorDialog::rescale() { - for(auto used_button:m_used_button) - m_button_list[used_button]->Rescale(); + for (auto used_button : m_used_button) { + if (m_button_list.find(used_button) != m_button_list.end()) { + m_button_list[used_button]->Rescale(); + } + } } ConfirmBeforeSendDialog::ConfirmBeforeSendDialog(wxWindow* parent, wxWindowID id, const wxString& title, enum ButtonStyle btn_style, const wxPoint& pos, const wxSize& size, long style, bool not_show_again_check)