Some fixes on zoom and scroll functions, when image windows are overlapped
This commit is contained in:
@@ -331,6 +331,9 @@ void ViewArea::paintEvent( QPaintEvent *event )
|
||||
{
|
||||
QRect winRect = event->rect();
|
||||
|
||||
if(visibleRegion().isEmpty())
|
||||
return;
|
||||
|
||||
if( size().isEmpty() || m_pixmap.isNull() )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user