sc/source/ui/unoobj/docuno.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 3e5130471baa02bfdcebf50a5790543bd1aaaf6c Author: Laurent Godard <lgodard.li...@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; } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits