mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-29 12:58:03 +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()
|
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();
|
this->active_icon.msw_rescale();
|
||||||
|
|
||||||
messureSize();
|
messureSize();
|
||||||
|
|||||||
Reference in New Issue
Block a user