| commit | 9dce33e6943dec5ff111802ec3e7c338abf56592 | [log] |
|---|---|---|
| author | Onur Yilmaz <onuryilmaz0750@gmail.com> | Sat Jan 11 19:45:34 2020 +0300 |
| committer | Michael Stahl <michael.stahl@cib.de> | Mon Jan 13 12:11:29 2020 +0100 |
| tree | 54e43c69d16717555d4b1729de078fcf3e2e1db1 | |
| parent | d98cc8f881673f64f0a1fa35eea8610fb5b083e3 [diff] |
Proper integer in SvxSearchCharSet::LastInView At the recommendation of comment in Patch Set 6: https://gerrit.libreoffice.org/c/core/+/85960/6/svx/source/dialog/searchcharmap.cxx#54 Change-Id: Ie2799b5e609b4843907a0a3e361ab4253b6cb9a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86611 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index 0986819..09517c8 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx
@@ -53,9 +53,9 @@ SvxSearchCharSet::SvxSearchCharSet(std::unique_ptr<weld::ScrolledWindow> pScroll int SvxSearchCharSet::LastInView() const { sal_uInt32 nIndex = FirstInView(); int nIndex = FirstInView(); nIndex += ROW_COUNT * COLUMN_COUNT - 1; sal_uInt32 nCompare = sal::static_int_cast<sal_uInt32>(nCount - 1); int nCompare = nCount - 1; if (nIndex > nCompare) nIndex = nCompare; return nIndex;