Fixed a crash when rescaling or changing color mode (Windows, macOS)

This commit is contained in:
Lukas Matena 2022-06-08 10:30:57 +02:00
parent 27a7ddccb6
commit 9420f47b26

View File

@ -1706,8 +1706,10 @@ void ObjectDataViewModel::Rescale()
break;
case itLayerRoot:
node->m_bmp = create_scaled_bitmap(LayerRootIcon);
break;
case itLayer:
node->m_bmp = create_scaled_bitmap(LayerIcon);
break;
case itInfo:
node->m_bmp = m_info_bmps.at(node->m_info_item_type);
break;