diff options
Diffstat (limited to 'sw/source/core/crsr/viscrs.cxx')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 585a0f414738..2c0ca9e2073e 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -186,7 +186,9 @@ void SwVisibleCursor::_SetPosAndShow() { // notify about page number change (if that happened) sal_uInt16 nPage, nVirtPage; - const_cast<SwCursorShell*>(m_pCursorShell)->GetPageNum(nPage, nVirtPage); + // bCalcFrame=false is important to avoid calculating the layout when + // we're in the middle of doing that already. + const_cast<SwCursorShell*>(m_pCursorShell)->GetPageNum(nPage, nVirtPage, /*bAtCursorPos=*/true, /*bCalcFrame=*/false); if (nPage != m_nPageLastTime) { m_nPageLastTime = nPage; |