From: mpv Date: Fri, 24 Jun 2005 09:55:43 +0000 (+0000) Subject: MPV: fix for bug IPAL9237 X-Git-Tag: T3_0_0_a4~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fc3d8b9a101411bab9e392b9f07cbdea7b2edbda;p=modules%2Fkernel.git MPV: fix for bug IPAL9237 Make non-zero undo-limit to perform OCAF operation correctly (operations never opened if undolimit=0 => problems with Locked flag) --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 6e0899ff8..d87b21ac4 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -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 ;