From: Jean-Marc Lasgouttes Date: Tue, 23 Sep 2008 21:57:23 +0000 (+0000) Subject: create a proper undo group before unifying graphics group (crystal clear, isn t it?) X-Git-Tag: 1.6.10~3368 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=efb2fb3e53b42bf82c0d22ad4e1e39065b55fde5;p=lyx.git create a proper undo group before unifying graphics group (crystal clear, isn t it?) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26508 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp index cea974402d..09454b8f6c 100644 --- a/src/frontends/qt4/GuiGraphics.cpp +++ b/src/frontends/qt4/GuiGraphics.cpp @@ -15,14 +15,15 @@ #include #include "GuiGraphics.h" - -#include "LengthCombo.h" -#include "Length.h" -#include "LyXRC.h" #include "qt_helpers.h" #include "Validator.h" +#include "Buffer.h" #include "FuncRequest.h" +#include "LengthCombo.h" +#include "Length.h" +#include "LyXRC.h" +#include "Undo.h" #include "graphics/GraphicsCache.h" #include "graphics/GraphicsCacheItem.h" @@ -715,10 +716,12 @@ void GuiGraphics::dispatchParams() { InsetGraphicsParams tmp_params(params_); string const lfun = InsetGraphics::params2string(tmp_params, buffer()); + buffer().undo().beginUndoGroup(); dispatch(FuncRequest(getLfun(), lfun)); if (!params_.groupId.empty()) dispatch(FuncRequest(LFUN_GRAPHICS_GROUPS_UNIFY, InsetGraphics::params2string(params_, buffer()))); + buffer().undo().endUndoGroup(); }