summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorBernhard Widl <bernhard.widl@cib.de>2017-05-12 13:55:50 +0200
committerMichael Stahl <mstahl@redhat.com>2017-05-12 21:21:46 +0200
commit408a7e320db978a8f784fa25e35caedf931612c5 (patch)
tree27ad4da5e00049069696b721d7a836cec7eb42b8 /sw/source
parentc9fb347642729017ad0c613fe26310befd021db8 (diff)
tdf#107795 fixed cursor position after inserting input field
Change-Id: I3c063c0393b524132e522914a7a9885c8a9c3b78 Reviewed-on: https://gerrit.libreoffice.org/37536 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index 88718273b980..d28bb81de56a 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -1328,10 +1328,14 @@ bool SwFieldMgr::InsertField(
if (TYP_INPUTFLD == rData.m_nTypeId)
{
+ pCurShell->Push();
+
// start dialog, not before the field is inserted tdf#99529
pCurShell->Left(CRSR_SKIP_CHARS,
false, (INP_VAR == (nSubType & 0xff)) ? 1 : 2, false );
pCurShell->StartInputFieldDlg(pField, false, rData.m_pParent);
+
+ pCurShell->Pop(false);
}
if(bExp && bEvalExp)