sc/source/filter/excel/xlescher.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a7f50a30abd0ed51ca1fd053e1cc726558e00cb0
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun Jan 26 15:09:25 2020 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sun Jan 26 17:34:35 2020 +0100

    Use properly typed variable for iteration
    
    Change-Id: Ifb81145c7238ef6b4916e0ef0984c9b868319aec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87451
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sc/source/filter/excel/xlescher.cxx 
b/sc/source/filter/excel/xlescher.cxx
index 45bcbbc753a8..8bbc1e397491 100644
--- a/sc/source/filter/excel/xlescher.cxx
+++ b/sc/source/filter/excel/xlescher.cxx
@@ -100,12 +100,12 @@ void lclGetRowFromY(
     long nTwipsY = static_cast< long >( nY / fScale + 0.5 );
     long nRowH = 0;
     bool bFound = false;
-    for( SCROW nRow = static_cast< SCROW >( nXclStartRow ); 
static_cast<unsigned>(nRow) <= nXclMaxRow; ++nRow )
+    for( sal_uInt32 nRow = nXclStartRow; nRow <= nXclMaxRow; ++nRow )
     {
         nRowH = rDoc.GetRowHeight( nRow, nScTab );
         if( rnStartH + nRowH > nTwipsY )
         {
-            rnXclRow = static_cast< sal_uInt32 >( nRow );
+            rnXclRow = nRow;
             bFound = true;
             break;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to