mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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
This commit is contained in:
parent
75b3ceb670
commit
efb2fb3e53
@ -15,14 +15,15 @@
|
||||
#include <config.h>
|
||||
|
||||
#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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user