]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021061: [CEA 433] Problem with "fit Area" in plot2D
authorvsr <vsr@opencascade.com>
Thu, 18 Nov 2010 15:20:16 +0000 (15:20 +0000)
committervsr <vsr@opencascade.com>
Thu, 18 Nov 2010 15:20:16 +0000 (15:20 +0000)
Additional fix

src/Plot2d/Plot2d_ViewFrame.cxx

index 7de8c58135e6a3b92c606ed76f6bc08232359a1a..41b94323e56cc60833fe66f4f59ba5c57f7590f4 100755 (executable)
@@ -1553,6 +1553,7 @@ void Plot2d_ViewFrame::wheelEvent(QWheelEvent* event)
     myPlot->setAxisScale( QwtPlot::yRight, y2Map.s1(), y2Map.s1() + aScale*(y2Map.s2() - y2Map.s1()) );
   }
   myPlot->replot();
+  if ( myPlot->zoomer() ) myPlot->zoomer()->setZoomBase();
   myPnt = event->pos();
 }