Kaydet (Commit) e08fc65e authored tarafından Caolán McNamara's avatar Caolán McNamara

enable undoing frame style creation

like all the rest, do it in non-broadcast mode as well

Change-Id: Iaf4f035e59b60737d92c3508e8e9f18d21b5a44a
üst 4681801f
...@@ -800,17 +800,17 @@ SwFrmFmt *SwDoc::MakeFrmFmt(const OUString &rFmtName, ...@@ -800,17 +800,17 @@ SwFrmFmt *SwDoc::MakeFrmFmt(const OUString &rFmtName,
mpFrmFmtTbl->push_back( pFmt ); mpFrmFmtTbl->push_back( pFmt );
SetModified(); SetModified();
if (bBroadcast)
{
BroadcastStyleOperation(rFmtName, SFX_STYLE_FAMILY_PARA,
SFX_STYLESHEET_CREATED);
if (GetIDocumentUndoRedo().DoesUndo()) if (GetIDocumentUndoRedo().DoesUndo())
{ {
SwUndo * pUndo = new SwUndoFrmFmtCreate(pFmt, pDerivedFrom, this); SwUndo * pUndo = new SwUndoFrmFmtCreate(pFmt, pDerivedFrom, this);
GetIDocumentUndoRedo().AppendUndo(pUndo); GetIDocumentUndoRedo().AppendUndo(pUndo);
} }
if (bBroadcast)
{
BroadcastStyleOperation(rFmtName, SFX_STYLE_FAMILY_PARA,
SFX_STYLESHEET_CREATED);
} }
return pFmt; return pFmt;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment