Salome HOME
updated copyright message
[modules/gui.git] / src / Plot2d / Plot2d.cxx
old mode 100755 (executable)
new mode 100644 (file)
index df128be..6fd308d
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -47,7 +47,7 @@ Plot2d_Point::Plot2d_Point()
   Constructor
 */
 Plot2d_Point::Plot2d_Point( double theX, double theY, const QString& theText )
-  : x( theX ), y( theY ), text( theText ), deviationPtr(0)
+  : x( theX ), y( theY ), deviationPtr(0), text( theText )
 {
 }
 
@@ -529,7 +529,7 @@ bool Plot2d::existMarker( const int rtti, const QwtPlot* thePlot, const QwtSymbo
       if ( anItem && anItem->rtti() == rtti ) {
        QwtPlotCurve* crv = dynamic_cast<QwtPlotCurve*>( anItem );
        if ( crv ) {
-         QwtSymbol::Style aStyle = crv->symbol().style();
+         QwtSymbol::Style aStyle = crv->symbol()->style();
          QColor           aColor = crv->pen().color();
          Qt::PenStyle     aLine  = crv->pen().style();
          ok = closeColors( aColor, color ) && aStyle == typeMarker && aLine == typeLine;