From 06089e42591bee414cf9a28dd08188a251ab20f3 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 1 Apr 2008 07:45:22 +0000 Subject: [PATCH] Correction for method existColor() --- src/Plot2d/Plot2d_Histogram.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plot2d/Plot2d_Histogram.cxx b/src/Plot2d/Plot2d_Histogram.cxx index 556201faa..2676172ff 100644 --- a/src/Plot2d/Plot2d_Histogram.cxx +++ b/src/Plot2d/Plot2d_Histogram.cxx @@ -180,9 +180,9 @@ bool Plot2d_Histogram::existColor( const QwtPlot* thePlot, const QColor& theColo if ( !anItem ) continue; if( anItem->rtti() == rtti() ) { - Plot2d_Histogram* anItem = dynamic_cast - ( anItem ); - if ( anItem && aColor == anItem->getColor() ) + Plot2d_HistogramItem* aHItem = dynamic_cast + ( anItem ); + if ( aHItem && aColor == aHItem->color() ) return true; } else if ( anItem->rtti() == QwtPlotItem::Rtti_PlotCurve ) { -- 2.39.2