]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction for method existColor()
authornds <nds@opencascade.com>
Tue, 1 Apr 2008 07:45:22 +0000 (07:45 +0000)
committernds <nds@opencascade.com>
Tue, 1 Apr 2008 07:45:22 +0000 (07:45 +0000)
src/Plot2d/Plot2d_Histogram.cxx

index 556201faa705fa34f50bbe27b7df8a0f732587bb..2676172ffa7ef8c64c253f926af4d4182d6e6efa 100644 (file)
@@ -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<Plot2d_Histogram*>
-                                              ( anItem );
-      if ( anItem && aColor == anItem->getColor() )
+      Plot2d_HistogramItem* aHItem = dynamic_cast<Plot2d_HistogramItem*>
+                                                  ( anItem );
+      if ( aHItem && aColor == aHItem->color() )
         return true;
     }
     else if ( anItem->rtti() == QwtPlotItem::Rtti_PlotCurve ) {