[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source

Bernhard Widl bernhard.widl at cib.de
Tue Jun 6 21:28:18 UTC 2017


 sw/source/uibase/fldui/fldmgr.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 48e75d8107d64920dd90c5d98b79dc982e311fa3
Author: Bernhard Widl <bernhard.widl at cib.de>
Date:   Fri May 12 13:55:50 2017 +0200

    tdf#107795 fixed cursor position after inserting input field
    
    Change-Id: I3c063c0393b524132e522914a7a9885c8a9c3b78
    Reviewed-on: https://gerrit.libreoffice.org/37536
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    (cherry picked from commit 408a7e320db978a8f784fa25e35caedf931612c5)
    Reviewed-on: https://gerrit.libreoffice.org/38443
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index a51dd7666f3d..35c6f5ebd28e 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)


More information about the Libreoffice-commits mailing list