FIX:m_ext_image call msw_rescale should protect

jira: STUDIO-11441
Change-Id: I89dc4bfaca61958773f7dfadf2983ff3f9cb6da1
This commit is contained in:
zhou.xu 2025-04-09 14:31:13 +08:00 committed by lane.wei
parent e3d4563720
commit f42e47b745
1 changed files with 3 additions and 1 deletions

View File

@ -605,7 +605,9 @@ const wxBitmap &AMSExtImage::get_bmp(const std::string &printer_type, bool is_am
void AMSExtImage::msw_rescale()
{
m_ext_image.msw_rescale();
if (m_ext_image.bmp().IsOk()) {
m_ext_image.msw_rescale();
}
Layout();
Fit();