]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Small fixes
authorvsv <vsv@coldrex.nnov.opencascade.com>
Tue, 6 May 2014 12:51:58 +0000 (16:51 +0400)
committervsv <vsv@coldrex.nnov.opencascade.com>
Tue, 6 May 2014 12:51:58 +0000 (16:51 +0400)
src/XGUI/XGUI_ViewPort.h
src/XGUI/XGUI_ViewWindow.cpp

index fa4104508146186d34225fd27926d5dbb23209c7..a0f9be0db84e93569d12157641528f1e399f725e 100644 (file)
@@ -17,7 +17,7 @@ Q_OBJECT
 public:
   XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer,
                 V3d_TypeOfView theType = V3d_ORTHOGRAPHIC);
-  ~XGUI_ViewPort();
+  virtual ~XGUI_ViewPort();
 
   virtual QPaintEngine* paintEngine() const
   {
index 12c92e6fa62cfeae5fd87963ae58f66c41519dd0..18cc941777f8b64faaf6c4956bd05a4031cdf59c 100644 (file)
@@ -112,6 +112,8 @@ void ViewerToolbar::paintEvent(QPaintEvent* theEvent)
     style->drawPrimitive(QStyle::PE_IndicatorToolBarHandle, &aOpt, &aPainter, this);
 }
 
+
+
 //**************************************************************************
 ViewerLabel::ViewerLabel(QWidget* theParent, XGUI_ViewPort* thePort)
   : QLabel(theParent), myVPort(thePort), myResize(false)
@@ -131,6 +133,7 @@ void ViewerLabel::paintEvent(QPaintEvent* theEvent)
   QImage aImg = myVPort->dumpView(aImgRect, myResize);
   if (!aImg.isNull())
     QPainter(this).drawImage(aRect, aImg);
+  myResize = false;
   QLabel::paintEvent(theEvent);
 }