]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Curve displayer is moved to the curve creator.
authornds <nds@opencascade.com>
Thu, 21 Nov 2013 09:24:19 +0000 (09:24 +0000)
committernds <nds@opencascade.com>
Thu, 21 Nov 2013 09:24:19 +0000 (09:24 +0000)
This is an attempt to fix the bug refs #94 - Fatal error after second Edit polyline

src/HYDROCurveCreator/CurveCreator_Curve.cxx
src/HYDROCurveCreator/CurveCreator_Curve.hxx

index f056b03426ae1b2c486c6de592bacf4d73193df8..51cf063e266a9aba11549e002ed9997ad5976529 100644 (file)
@@ -106,6 +106,15 @@ void CurveCreator_Curve::setDisplayer( CurveCreator_Displayer* theDisplayer )
   myDisplayer = theDisplayer;
 }
 
+//=======================================================================
+// function: getDisplayer
+// purpose: get curve changes Displayer
+//=======================================================================
+CurveCreator_Displayer* CurveCreator_Curve::getDisplayer()
+{
+  return myDisplayer;
+}
+
 //=======================================================================
 // function: removeDisplayer
 // purpose: remove the attached Displayer
index bb29e889e439f8630ca3a273c7cc4e3c5d2e6c2a..cc6d97b21aa039ef7624d0e4adb86aa19daba7fe 100644 (file)
@@ -69,6 +69,9 @@ public:
   //! Set curve creator Displayer object
   virtual void setDisplayer( CurveCreator_Displayer* theDisplayer );
 
+  //! Return curve creator Displayer object
+  CurveCreator_Displayer* getDisplayer();
+
   //! Remove curve creator Displayer object
   virtual void removeDisplayer();