Sfoglia il codice sorgente

PixelPaint: Fit image to view when opened

When opening a file, make it fit on the screen. I think this is
sensible default behaviour.
Mustafa Quraish 3 anni fa
parent
commit
d38d03ce28
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Userland/Applications/PixelPaint/MainWidget.cpp

+ 1 - 0
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);
     m_tab_widget->set_active_widget(&image_editor);
     image_editor.set_focus(true);
     image_editor.set_focus(true);
+    image_editor.fit_image_to_view();
     return image_editor;
     return image_editor;
 }
 }