From a00c47afd4cf379ce2b22f3c33bb7975a5a6366a Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Thu, 13 Aug 2015 20:20:42 +0200 Subject: sal_uInt16 to sal_Int32 Change-Id: Ia693dcbcfaa0349ef13466bb2eed877c5823f5bb --- sfx2/source/control/thumbnailviewitem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx index ba82a1efd51c..8aaf33f28a29 100644 --- a/sfx2/source/control/thumbnailviewitem.cxx +++ b/sfx2/source/control/thumbnailviewitem.cxx @@ -334,7 +334,7 @@ void ThumbnailViewItem::addTextPrimitives (const OUString& rText, const Thumbnai sal_uInt16 nLineStart = 0; for (sal_uInt16 i=0; i < aTextEngine.GetLineCount(0); ++i) { - sal_uInt16 nLineLength = aTextEngine.GetLineLen(0, i); + sal_Int32 nLineLength = aTextEngine.GetLineLen(0, i); double nLineWidth = aTextDev.getTextWidth (aText, nLineStart, nLineLength); bool bTooLong = (aPos.getY() + aTextEngine.GetCharHeight()) > maDrawArea.Bottom(); @@ -343,7 +343,7 @@ void ThumbnailViewItem::addTextPrimitives (const OUString& rText, const Thumbnai // Add the '...' to the last line to show, even though it may require to shorten the line double nDotsWidth = aTextDev.getTextWidth(OUString("..."),0,3); - sal_uInt16 nLength = nLineLength - 1; + sal_Int32 nLength = nLineLength - 1; while ( nDotsWidth + aTextDev.getTextWidth(aText, nLineStart, nLength) > maDrawArea.getWidth() && nLength > 0) { --nLength; -- cgit