diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2021-09-11 14:36:24 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 00:17:04 +0200 |
commit | d38d03ce28f0aa2a0f1549a1a6db34f758abf463 (patch) | |
tree | d9185ffd6269477b98e3ff6ef7a6c195d4a87fba /Userland/Applications | |
parent | f890f8529ae882795b7358fab5cdc524dc87da7e (diff) | |
download | serenity-d38d03ce28f0aa2a0f1549a1a6db34f758abf463.zip |
PixelPaint: Fit image to view when opened
When opening a file, make it fit on the screen. I think this is
sensible default behaviour.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index fe2f1c44ec..144f0f71ee 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -812,6 +812,7 @@ ImageEditor& MainWidget::create_new_editor(NonnullRefPtr<Image> image) m_tab_widget->set_active_widget(&image_editor); image_editor.set_focus(true); + image_editor.fit_image_to_view(); return image_editor; } |