summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-08-13 20:20:42 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-16 09:10:19 +0200
commita00c47afd4cf379ce2b22f3c33bb7975a5a6366a (patch)
tree028c850a7c4bfc585516d2e097dca52cd73cc31e /sfx2/source/control
parent800b0241c213b42dada56ca41a6f9e02eb541a23 (diff)
sal_uInt16 to sal_Int32
Change-Id: Ia693dcbcfaa0349ef13466bb2eed877c5823f5bb
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/thumbnailviewitem.cxx4
1 files changed, 2 insertions, 2 deletions
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;