From fc3d8b9a101411bab9e392b9f07cbdea7b2edbda Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 24 Jun 2005 09:55:43 +0000 Subject: [PATCH] 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) --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 1 + 1 file changed, 1 insertion(+) 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 ; -- 2.39.2