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;