From: imn Date: Fri, 17 Apr 2015 07:57:16 +0000 (+0300) Subject: INT PAL 0052660: Plot2D Viewer: Plot2d_Curve can't be selected X-Git-Tag: V7_6_0rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6caa123c65e3c4a3017364ec5bb4225fd898465;p=modules%2Fgui.git INT PAL 0052660: Plot2D Viewer: Plot2d_Curve can't be selected --- diff --git a/src/SPlot2d/SPlot2d_ViewModel.cxx b/src/SPlot2d/SPlot2d_ViewModel.cxx index 620f74e91..02b8e4009 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.cxx +++ b/src/SPlot2d/SPlot2d_ViewModel.cxx @@ -407,6 +407,13 @@ void SPlot2d_Viewer::onClicked( const QVariant& itemInfo, int index ) QwtPlotItem* plotItem = aViewFrame->getPlot()->infoToItem( itemInfo ); + CurveDict aCurves = aViewFrame->getCurves(); + for( CurveDict::Iterator it = aCurves.begin(); it != aCurves.end(); ++it ) + { + it.value()->setSelected( plotItem == it.key() ); + aViewFrame->updateCurve( it.value(), true ); + } + bool isAnalytical = false; AnalyticalCurveList curves = aViewFrame->getAnalyticalCurves(); foreach ( Plot2d_AnalyticalCurve* curve, curves ) { @@ -426,7 +433,6 @@ void SPlot2d_Viewer::onClicked( const QVariant& itemInfo, int index ) } Plot2d_Object* anObject = aViewFrame->getPlotObject(plotItem); - if(anObject) { // Highlight object in Object Browser