mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-23 01:49:17 +00:00
Clarify icon rescaling condition in Button::Rescale method
This commit is contained in:
@@ -254,7 +254,8 @@ void Button::SetStyle(const ButtonStyle style, const ButtonType type)
|
||||
|
||||
void Button::Rescale()
|
||||
{
|
||||
if (this->active_icon.bmp().IsOk())
|
||||
// Only a named icon can be re-rasterized; one set from a wxBitmap has no source file,
|
||||
if (!this->active_icon.name().empty())
|
||||
this->active_icon.msw_rescale();
|
||||
|
||||
messureSize();
|
||||
|
||||
Reference in New Issue
Block a user