diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-31 15:50:36 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-01-01 02:02:03 +0100 |
commit | 953fd82f2319fc84771c8ac209d63f045a480138 (patch) | |
tree | e4011d7d452a9f3b088f6d0819a23767ddf5c3c7 /svx | |
parent | 864c3aa5ddeab486d2233c7b8f7c467306c3ef54 (diff) |
tdf#114775: fix crash when deleting some rows
see bt https://bugs.documentfoundation.org/attachment.cgi?id=138757
Change-Id: I493bf47b1541262a5ea78b541bc1f47f93cc73df
Reviewed-on: https://gerrit.libreoffice.org/47219
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index 57af471fda3f..0ed000716416 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -1840,7 +1840,7 @@ Sequence< Any> FmGridControl::getSelectionBookmarks() // change our selection. So a "FirstSelected(); SeekCursor(); NextSelected();" may produce unpredictable results. // That's why we _first_ collect the indices of the selected rows and _then_ their bookmarks. long nIdx = FirstSelectedRow(); - while (nIdx >= 0) + while (nIdx != BROWSER_ENDOFSELECTION) { // (we misuse the bookmarks array for this ...) pBookmarks[i++] <<= (sal_Int32)nIdx; |