{
GLViewer_Object* anObject = *it;
GLViewer_Rect* aRect = anObject->getRect();
- if( !anObject->isSelectable() || !anObject->getVisible() )
+ if( !anObject->isScalable() || !anObject->getVisible() )
continue;
if( border->isEmpty() )
for( myGLContext->InitSelected(); myGLContext->MoreSelected(); myGLContext->NextSelected() )
{
GLViewer_Object* anObject = myGLContext->SelectedObject();
- update = anObject->updateZoom( zoomIn ) || update;
+ if( e->modifiers() & Qt::ControlModifier )
+ update = anObject->updateXZoom( zoomIn ) || update;
+ else
+ update = anObject->updateZoom( zoomIn ) || update;
}
emit wheelZoomChange( zoomIn );