From: nds Date: Tue, 1 Apr 2008 07:45:22 +0000 (+0000) Subject: Correction for method existColor() X-Git-Tag: TG_ACHERON_2008-04-13~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06089e42591bee414cf9a28dd08188a251ab20f3;p=modules%2Fgui.git Correction for method existColor() --- 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 ) {