]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Modified method getLastSavePoint
authorsrn <srn@opencascade.com>
Wed, 8 Feb 2006 14:20:57 +0000 (14:20 +0000)
committersrn <srn@opencascade.com>
Wed, 8 Feb 2006 14:20:57 +0000 (14:20 +0000)
src/SALOMEDS/SALOMEDS_IParameters.cxx
src/SALOMEDS/SALOMEDS_IParameters.hxx

index a73712014aa0842dcb4d3cbeab50a90934ad2b2f..d77287a9af1c9aaa316bd560a8c2a67a0e15b384 100644 (file)
@@ -224,11 +224,8 @@ bool SALOMEDS_IParameters::isDumpPython()
   return (bool)_ap->GetBool(_AP_DUMP_PYTHON_);
 }
 
-int SALOMEDS_IParameters::getLastSavePoint(const string& theID)
+int SALOMEDS_IParameters::getLastSavePoint(_PTR(Study) study, const string& theID)
 {
-  if(!_ap) return -1;
-  _PTR(SObject) main_so = _ap->GetSObject();
-  _PTR(Study) study = main_so->GetStudy();
   _PTR(SObject) so = study->FindComponent(theID);
   if(!so) return -1;
 
index 8bfb8dfc6a4016006ef46a7fe562d0dbe84837fb..b1ddc8aa98771a51a860ffe2106f039dbd6b2620 100644 (file)
@@ -125,7 +125,7 @@ public:
   /*!
     Returns an ID of the last save point
   */
-  int getLastSavePoint(const std::string& theID);
+  static int getLastSavePoint(_PTR(Study) study, const std::string&  theID);
 
 private:
   _PTR(AttributeParameter) _ap;