diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-29 17:58:19 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-29 17:02:25 +0000 |
commit | d60708c5116b4c48b30b94095aafd3e77de46f6a (patch) | |
tree | 8c15e2088db0fff140e91090caf1369468787e97 /sw/source/core/doc/docftn.cxx | |
parent | 3ee2cae3a36e5d052e02c3f7b226dc3b79bd2ebc (diff) |
sw undo: implement SfxUndoAction::GetViewShellId() interface
With this, it's possible to tell which view shell created which undo
actions. It's visible only in the doc model xml dump only, though.
Change-Id: Ia76d218a1d8b578aaad00ab733c772b10dda39f0
Reviewed-on: https://gerrit.libreoffice.org/27693
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/core/doc/docftn.cxx')
-rw-r--r-- | sw/source/core/doc/docftn.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docftn.cxx b/sw/source/core/doc/docftn.cxx index da581f9cab57..807a972305c7 100644 --- a/sw/source/core/doc/docftn.cxx +++ b/sw/source/core/doc/docftn.cxx @@ -257,7 +257,7 @@ void SwDoc::SetFootnoteInfo(const SwFootnoteInfo& rInfo) if (GetIDocumentUndoRedo().DoesUndo()) { - GetIDocumentUndoRedo().AppendUndo( new SwUndoFootNoteInfo(rOld) ); + GetIDocumentUndoRedo().AppendUndo( new SwUndoFootNoteInfo(rOld, this) ); } bool bFootnotePos = rInfo.ePos != rOld.ePos; @@ -327,7 +327,7 @@ void SwDoc::SetEndNoteInfo(const SwEndNoteInfo& rInfo) { if(GetIDocumentUndoRedo().DoesUndo()) { - SwUndo *const pUndo( new SwUndoEndNoteInfo( GetEndNoteInfo() ) ); + SwUndo *const pUndo( new SwUndoEndNoteInfo( GetEndNoteInfo(), this ) ); GetIDocumentUndoRedo().AppendUndo(pUndo); } |