diff options
author | scito <info@scito.ch> | 2021-04-23 11:07:46 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-23 12:34:38 +0200 |
commit | 7c1e22152ed1a1837782a55fc9997f8e7801681b (patch) | |
tree | 5273a06789eda136efb897e337e246b738d1cc5d /sc/source/core/data | |
parent | db1cf111666847ce5ce93d18ae5ae8c29a4c44d6 (diff) |
tdf#95554 fix ScDocument::GetClipArea() for rows: use > instead of <
I did not write any tests, as the multi range copying to system clipboard
has another issue, see tdf#141847
Change-Id: I3af58d68370038274a07d753809fb4ceca9016f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114534
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/core/data')
-rwxr-xr-x | sc/source/core/data/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 05036e0ee148..108c07e03705 100755 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -3192,7 +3192,7 @@ void ScDocument::GetClipArea(SCCOL& nClipX, SCROW& nClipY, bool bIncludeFiltered nStartRow = rRange2.aStart.Row(); if (rRange2.aEnd.Col() > nEndCol) nEndCol = rRange2.aEnd.Col(); - if (rRange2.aEnd.Row() < nEndRow) + if (rRange2.aEnd.Row() > nEndRow) nEndRow = rRange2.aEnd.Row(); } |