1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

Magnifier: Prevent 0 size that otherwise hangs

This commit is contained in:
FrHun 2022-12-04 22:23:12 +01:00 committed by Sam Atkins
parent 808eafcf1e
commit 9e0deb76b2
2 changed files with 10 additions and 0 deletions

View file

@ -36,6 +36,11 @@ public:
void display_next_frame();
RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; };
virtual Optional<GUI::UISize> calculated_min_size() const override
{
return GUI::UISize { frame_thickness() * 2 + m_scale_factor, frame_thickness() * 2 + m_scale_factor };
}
private:
MagnifierWidget();