diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-20 07:33:00 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-20 04:22:44 -0500 |
commit | bb8acc29e4ad4fb8245b2ed47e60c6cac641ddb1 (patch) | |
tree | 94d84ba9c76a5dc363513f044e4221c42c414f20 | |
parent | e6d5a3d6cd90b9618697cde2ec99390fe6ad5ffe (diff) |
Resolves: fdo#78838 past-the-end iterator
Inserting data in pColumnData invalidated miAutoPosColumn
See https://bugs.freedesktop.org/show_bug.cgi?id=78838#c6
Cherry-picked from 1df54514d7a1ebb1b4fa16cca386a34e7c41c490
Change-Id: Iece423cd8d14f5ae7bf382583c0369895a00f168
Reviewed-on: https://gerrit.libreoffice.org/9409
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index d96431229105..ed5e352b7357 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -1536,7 +1536,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(); + } } } |