From ced27d2a20954c58442b86f5b4846f7dd8ed6d43 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 20 Jun 2007 13:46:38 +0000 Subject: [PATCH] Porting to Qt 4 --- src/Plot2d/Plot2d_ToolTip.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_ToolTip.cxx b/src/Plot2d/Plot2d_ToolTip.cxx index 2afbd2370..bf94e310f 100644 --- a/src/Plot2d/Plot2d_ToolTip.cxx +++ b/src/Plot2d/Plot2d_ToolTip.cxx @@ -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 ); -- 2.39.2