summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-28 14:05:00 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-09-30 13:16:12 +0200
commit1162b94cfe81303012a04e45d6cf9d254cd2ed4c (patch)
treeae5f98e0a9219d18e117b5099b7bffb86ded99ad
parentRelated: tdf#136985 SfxStringListItem::GetString() crash in empty case (diff)
downloadcore-1162b94cfe81303012a04e45d6cf9d254cd2ed4c.tar.gz
core-1162b94cfe81303012a04e45d6cf9d254cd2ed4c.zip
tdf#133358 fix crash in redoing indent
since... commit b070202b420129b5edd368420e0e50ec45261d01 Date: Tue Nov 20 18:26:18 2018 +0100 sw_redlinehide_4a: SwEditShell::IsMoveLeftMargin(), MoveLeftMargin() Change-Id: Ie28207747560153020341305015f1693f6ca9f50 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103552 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit dc6e005c79b6c23b805dea44cd89fa83ea945f03) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103578 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit c1955f26cb772fc90ca81affcb524ebf1f12f3a3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103649 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sw/source/core/undo/unattr.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx
index 038302aa187c..e0130d9390f3 100644
--- a/sw/source/core/undo/unattr.cxx
+++ b/sw/source/core/undo/unattr.cxx
@@ -919,14 +919,15 @@ void SwUndoMoveLeftMargin::RedoImpl(::sw::UndoRedoContext & rContext)
SwPaM & rPam = AddUndoRedoPaM(rContext);
rDoc.MoveLeftMargin( rPam,
- GetId() == SwUndoId::INC_LEFTMARGIN, m_bModulus );
+ GetId() == SwUndoId::INC_LEFTMARGIN, m_bModulus,
+ rDoc.getIDocumentLayoutAccess().GetCurrentLayout() );
}
void SwUndoMoveLeftMargin::RepeatImpl(::sw::RepeatContext & rContext)
{
SwDoc & rDoc = rContext.GetDoc();
rDoc.MoveLeftMargin(rContext.GetRepeatPaM(), GetId() == SwUndoId::INC_LEFTMARGIN,
- m_bModulus );
+ m_bModulus, rDoc.getIDocumentLayoutAccess().GetCurrentLayout());
}
SwUndoChangeFootNote::SwUndoChangeFootNote(