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

Onur Yilmaz (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 13 11:12:02 UTC 2020


 svx/source/dialog/searchcharmap.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9dce33e6943dec5ff111802ec3e7c338abf56592
Author:     Onur Yilmaz <onuryilmaz0750 at gmail.com>
AuthorDate: Sat Jan 11 19:45:34 2020 +0300
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Mon Jan 13 12:11:29 2020 +0100

    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 at cib.de>

diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx
index 09868195aa66..09517c8fd117 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;


More information about the Libreoffice-commits mailing list