diff --git a/artpaint/paintwindow/ImageView.cpp b/artpaint/paintwindow/ImageView.cpp index 5cc9d6ff..2bd43d7c 100644 --- a/artpaint/paintwindow/ImageView.cpp +++ b/artpaint/paintwindow/ImageView.cpp @@ -308,8 +308,10 @@ void ImageView::UpdateImage(BRect bitmap_rect) { bitmap_rect = bitmap_rect & the_image->ReturnRenderedImage()->Bounds(); - the_image->Render(bitmap_rect); - Invalidate(convertBitmapRectToView(bitmap_rect)); + if (bitmap_rect.IsValid()) { + the_image->Render(bitmap_rect); + Invalidate(convertBitmapRectToView(bitmap_rect)); + } }