summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2017-12-24 06:51:10 +0800
committerMark Hung <marklh9@gmail.com>2018-01-04 12:43:08 +0100
commit2dd45c0c62b3ef3d8057b3fc70af24ae11a3d01d (patch)
tree9fa718df17e170d1bc111f5e305f305ae12ad3a3
parenta16b44481e3c5582dfb581f769e07ab94e8ac44b (diff)
tdf#114664 allow the splitted paragraph attributes to recover.
Calling the SetParaAttribs to the splitted paragraph is effective only after ParagraphInserted is invoked. Change-Id: I1c2a58bc40e2a84d7bed4d85918e1d0ecdbe267f Reviewed-on: https://gerrit.libreoffice.org/47174 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
-rw-r--r--editeng/source/editeng/editundo.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/editeng/editundo.cxx b/editeng/source/editeng/editundo.cxx
index 2fa5364a4312..6beb8617be28 100644
--- a/editeng/source/editeng/editundo.cxx
+++ b/editeng/source/editeng/editundo.cxx
@@ -254,11 +254,13 @@ void EditUndoConnectParas::Undo()
EditPaM aPaM = GetEditEngine()->SplitContent(nNode, nSepPos);
GetEditEngine()->SetParaAttribs( nNode, aLeftParaAttribs );
- GetEditEngine()->SetParaAttribs( nNode+1, aRightParaAttribs );
GetEditEngine()->SetCallParaInsertedOrDeleted( bCall );
if (GetEditEngine()->IsCallParaInsertedOrDeleted())
+ {
GetEditEngine()->ParagraphInserted( nNode+1 );
+ GetEditEngine()->SetParaAttribs( nNode+1, aRightParaAttribs );
+ }
if (GetEditEngine()->GetStyleSheetPool())
{