summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-03-13 19:15:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-13 19:32:59 +0100
commit7c7f00a89a675dad541d32ea60695a7b11210102 (patch)
tree7358ce2cbb4c61a566c9faf1c91f21b97274f760 /sw
parent34cd775646a7f21f0d2d40462ae716671bab67c9 (diff)
tdf#147961 Crash Typing "++" and press Enter (AutoCorrect Create Table)
regression from commit 7cd5b35caa8d4fa9d0ba2b2c6ce4b88726ed2be6 Author: Noel Grandin <noelgrandin@gmail.com> Date: Fri Sep 24 13:21:35 2021 +0200 return SwCursor from IShellCursorSupplier Change-Id: I6a4e3f90653dc96a91091be1372f27c6303ba346 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131505 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/autofmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 60c14ad81d17..cd5d0e128864 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -2371,7 +2371,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFormatFlags const &
{
//JP 30.09.96: DoTable() builds on PopCursor and MoveCursor after AutoFormat!
pEdShell->Pop(SwCursorShell::PopMode::DeleteCurrent);
- *pEdShell->GetCursor() = static_cast<SwCursor&>(m_aDelPam);
+ static_cast<SwPaM&>(*pEdShell->GetCursor()) = m_aDelPam;
pEdShell->Push();
eStat = IS_END;