[Libreoffice-commits] core.git: sc/source

Julien Nabet serval2412 at yahoo.fr
Mon May 19 22:36:02 PDT 2014


 sc/source/ui/app/inputhdl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1df54514d7a1ebb1b4fa16cca386a34e7c41c490
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue May 20 07:33:00 2014 +0200

    Resolves: fdo#78838 past-the-end iterator
    
    Inserting data in pColumnData invalidated miAutoPosColumn
    See https://bugs.freedesktop.org/show_bug.cgi?id=78838#c6
    
    Change-Id: Iece423cd8d14f5ae7bf382583c0369895a00f168

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index d354cba..af767b9 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1418,7 +1418,10 @@ void ScInputHandler::GetColData()
         pDoc->GetDataEntries(
             aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(), true, aEntries, true);
         if (!aEntries.empty())
+        {
             pColumnData->insert(aEntries.begin(), aEntries.end());
+            miAutoPosColumn = pColumnData->end();
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list