fix scale img is null and crash bug.

This commit is contained in:
alves
2025-12-29 15:43:16 +08:00
parent cd8fd444b1
commit 38a029516e

View File

@@ -574,7 +574,8 @@ void ObjectDataViewModel::UpdateBitmapForNode(ObjectDataViewModelNode *node)
} }
bmp = m_bitmap_cache->insert(scaled_bitmap_name, bmps); bmp = m_bitmap_cache->insert(scaled_bitmap_name, bmps);
} }
if (!bmp)
return;
node->SetBitmap(*bmp); node->SetBitmap(*bmp);
} }