[Libreoffice-commits] core.git: Branch 'feature/sc-notes-storage' - sc/source

Laurent Godard lgodard.libre at laposte.net
Wed Oct 23 04:45:21 PDT 2013


 sc/source/ui/unoobj/docuno.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 3e5130471baa02bfdcebf50a5790543bd1aaaf6c
Author: Laurent Godard <lgodard.libre at laposte.net>
Date:   Wed Oct 23 13:36:12 2013 +0200

    remove warning [-Wsign-compare]
    
    Change-Id: I1a131294a7ea6e55a97394caf10aeea1e55e0e00

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 19ca44d..a4e3620 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -3444,7 +3444,8 @@ bool ScAnnotationsObj::GetAddressByIndex_Impl( sal_Int32 nIndex, ScAddress& rPos
                 size_t nOffset = aPos.second;
                 size_t nDataSize = 0;
                 size_t nRow = 0;
-                if (nFound + maNotes.size() >= nIndex)
+                sal_Int32 nNotesSize = maNotes.size();
+                if (nFound + nNotesSize >= nIndex)
                 {
                     for (; it != maNotes.end(); ++it, nOffset = 0, nRow += nDataSize)
                     {
@@ -3458,7 +3459,7 @@ bool ScAnnotationsObj::GetAddressByIndex_Impl( sal_Int32 nIndex, ScAddress& rPos
                     }
                 }
                 else
-                    nFound += maNotes.size();
+                    nFound += nNotesSize;
             }
         }
     }


More information about the Libreoffice-commits mailing list