From e6caa123c65e3c4a3017364ec5bb4225fd898465 Mon Sep 17 00:00:00 2001 From: imn Date: Fri, 17 Apr 2015 10:57:16 +0300 Subject: [PATCH] INT PAL 0052660: Plot2D Viewer: Plot2d_Curve can't be selected --- src/SPlot2d/SPlot2d_ViewModel.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.2