FIX:Array out of bounds protection

jira: STUDIO-10538
Change-Id: Id924495fe4edcedf48e79fa0deffdd6bb98d69cf
(cherry picked from commit 44fd34d4f7ddc3f51f710757058022eb5aa145f0)
This commit is contained in:
zhou.xu
2025-02-21 11:04:10 +08:00
committed by Noisyfox
parent e85fc25690
commit e108438427

View File

@@ -1182,9 +1182,12 @@ void PrintErrorDialog::msw_rescale() {
void PrintErrorDialog::rescale() void PrintErrorDialog::rescale()
{ {
for(auto used_button:m_used_button) for (auto used_button : m_used_button) {
if (m_button_list.find(used_button) != m_button_list.end()) {
m_button_list[used_button]->Rescale(); 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) 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)
:DPIDialog(parent, id, title, pos, size, style) :DPIDialog(parent, id, title, pos, size, style)