mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
LibGUI: Don't fix ImageWidget's size when disabling auto_resize()
This commit is contained in:
parent
b17d4a0ced
commit
59483b0654
1 changed files with 3 additions and 2 deletions
|
@ -44,9 +44,10 @@ void ImageWidget::set_bitmap(Gfx::Bitmap const* bitmap)
|
||||||
|
|
||||||
void ImageWidget::set_auto_resize(bool value)
|
void ImageWidget::set_auto_resize(bool value)
|
||||||
{
|
{
|
||||||
|
if (m_auto_resize == value)
|
||||||
|
return;
|
||||||
m_auto_resize = value;
|
m_auto_resize = value;
|
||||||
|
if (m_bitmap && m_auto_resize)
|
||||||
if (m_bitmap)
|
|
||||||
set_fixed_size(m_bitmap->size());
|
set_fixed_size(m_bitmap->size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue