diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-10 11:58:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-10 18:31:37 +0200 |
commit | 49ce4bf15c1769b7427dd4d828e586c1e896f928 (patch) | |
tree | 7f8e45a988682ed0bc252351d0f074c3c9da5e45 /sw/source/uibase/utlui | |
parent | 32c162ad1723512763b74d01eaec32c1296f3a55 (diff) |
tdf#132845 discard pending page change if user clicks in document
Change-Id: Icce91c9afac143190dc5c7d823d745dc2434c1a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96013
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 997ca0df86e4..0e3af56e48ec 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -405,6 +405,10 @@ bool SwNavigationPI::EditAction() if (m_aPageChgIdle.IsActive()) m_aPageChgIdle.Stop(); + // if the user has clicked into the document, forget about changing the page + if (pView->GetEditWin().HasFocus()) + return false; + SwWrtShell &rSh = m_pCreateView->GetWrtShell(); sal_uInt16 nNewPage = m_xEdit->get_value(); |