]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting to Qt 4
authorvsr <vsr@opencascade.com>
Wed, 20 Jun 2007 13:46:38 +0000 (13:46 +0000)
committervsr <vsr@opencascade.com>
Wed, 20 Jun 2007 13:46:38 +0000 (13:46 +0000)
src/Plot2d/Plot2d_ToolTip.cxx

index 2afbd2370ede96dd191ede928c12543f8129be38..bf94e310f6970ac3043c6b50032d4d0af9e00d43 100644 (file)
@@ -52,7 +52,7 @@ void Plot2d_ToolTip::onToolTip( QPoint p, QString& str, QFont& f, QRect& txtRect
   double dist;
 
   Plot2d_Curve* c = myPlot->getClosestCurve( p, dist, pInd );
-  if( dist>maxDist || !c )
+  if( !c || dist>maxDist )
     return;
 
   str = c->text( pInd );