*/
void GLViewer_Viewer2d::updateBorders( GLViewer_Rect* theRect )
{
+ if ( theRect->isNull() )
+ return;
+
QVector<SUIT_ViewWindow*> views = getViewManager()->getViews();
for ( int i = 0, n = views.count(); i < n; i++ )
{
{
GLViewer_Object* anObject = *it;
GLViewer_Rect* aRect = anObject->getRect();
- if( !anObject->isScalable() || !anObject->getVisible() )
+ if( !anObject->isScalable() || !anObject->getVisible() || aRect->isNull() )
continue;
if( border->isEmpty() )