diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index 14f8a18852..d14136dd3e 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -377,7 +377,7 @@ void ShowImageWindow::WindowRedimension(BBitmap *pbitmap) { BScreen screen; - if (screen.IsValid()) + if (!screen.IsValid()) return; BRect r(pbitmap->Bounds());