]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
MPV: fix for bug IPAL9237
authormpv <mpv@opencascade.com>
Fri, 24 Jun 2005 09:55:43 +0000 (09:55 +0000)
committermpv <mpv@opencascade.com>
Fri, 24 Jun 2005 09:55:43 +0000 (09:55 +0000)
Make non-zero undo-limit to perform OCAF operation correctly (operations never opened if undolimit=0 => problems with Locked flag)

src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx

index 6e0899ff885f39de92eb99a2dd1f0acb1d072585..d87b21ac4f7cf4f5aa44292e67374c85449ac58d 100644 (file)
@@ -41,6 +41,7 @@ IMPLEMENT_STANDARD_RTTIEXT( SALOMEDSImpl_Study, MMgt_TShared )
 SALOMEDSImpl_Study::SALOMEDSImpl_Study(const Handle(TDocStd_Document)& doc,
                                       const TCollection_AsciiString& study_name)
 {
+  doc->SetUndoLimit(1); // mpv (IPAL9237): if there is no undo limit, operations mechanism couldn't work
   _name = study_name;
   _doc = doc;
   _Saved = false ;