From bd4d97c9d9ce07ab66c8f0d62a1f32d8870b12c0 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 11 Oct 2012 07:47:01 +0000 Subject: [PATCH] Porting to QWT 6.0.0 This commit resolves problems with curve markers in the Plot2d legend. By default, qwt 6.0.0 shows marker in the legend as square, even if another marker (circle i.e) was chosen. --- src/Plot2d/Plot2d_Curve.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index 174e421cf..be642c29b 100755 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -122,7 +122,7 @@ void Plot2d_Curve::updatePlotItem( QwtPlotItem* theItem ) QPen( getColor() ), QSize( myMarkerSize, myMarkerSize ) ) ); aCurve->setSamples( horData(), verData(), nbPoints() ); - //aCurve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol,true );//ema:TODO + aCurve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol, true ); } /*! -- 2.39.2