editeng/source/editeng/editundo.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2dd45c0c62b3ef3d8057b3fc70af24ae11a3d01d Author: Mark Hung <mark...@gmail.com> Date: Sun Dec 24 06:51:10 2017 +0800 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 <c...@libreoffice.org> Reviewed-by: Mark Hung <mark...@gmail.com> 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()) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits