summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotext.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-03-12 18:57:32 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-03-12 18:57:32 -0600
commit9cd038e5b89c978ea24ba7efa7c3152801190455 (patch)
tree7d938fd9373eb827095787955e2feffca942b8fd /svx/source/svdraw/svdotext.cxx
parente65c0fe553a9d1b85dcacfff7af9df8231427876 (diff)
fix mis-merge all-around.
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rwxr-xr-xsvx/source/svdraw/svdotext.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 0ea30bc54ad4..198beaecab93 100755
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1436,8 +1436,8 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize,
// line-breaking text that we need some more samples
// loop early-exits if we detect an already attained value
- USHORT nMinStretchX=0, nMinStretchY=0;
- USHORT aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0};
+ sal_uInt16 nMinStretchX=0, nMinStretchY=0;
+ sal_uInt16 aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0};
const size_t aStretchArySize=sizeof(aOldStretchXVals)/sizeof(*aOldStretchXVals);
for(unsigned int i=0; i<aStretchArySize; ++i)
{
@@ -1448,7 +1448,7 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize,
else
fFactor = double(rTextSize.Height())/aCurrTextSize.Height();
- USHORT nCurrStretchX, nCurrStretchY;
+ sal_uInt16 nCurrStretchX, nCurrStretchY;
rOutliner.GetGlobalCharStretching(nCurrStretchX, nCurrStretchY);
if (fFactor >= 1.0 )
@@ -1465,17 +1465,17 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize,
if (fFactor < 1.0 || (fFactor >= 1.0 && nCurrStretchX != 100))
{
- nCurrStretchX = sal::static_int_cast<USHORT>(nCurrStretchX*fFactor);
- nCurrStretchY = sal::static_int_cast<USHORT>(nCurrStretchY*fFactor);
- rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nCurrStretchX),
- std::min(USHORT(100),nCurrStretchY));
+ nCurrStretchX = sal::static_int_cast<sal_uInt16>(nCurrStretchX*fFactor);
+ nCurrStretchY = sal::static_int_cast<sal_uInt16>(nCurrStretchY*fFactor);
+ rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nCurrStretchX),
+ std::min(sal_uInt16(100),nCurrStretchY));
OSL_TRACE("SdrTextObj::onEditOutlinerStatusEvent(): zoom is %d", nCurrStretchX);
}
}
OSL_TRACE("---- SdrTextObj::onEditOutlinerStatusEvent(): final zoom is %d ----", nMinStretchX);
- rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nMinStretchX),
- std::min(USHORT(100),nMinStretchY));
+ rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nMinStretchX),
+ std::min(sal_uInt16(100),nMinStretchY));
}
void SdrTextObj::SetupOutlinerFormatting( SdrOutliner& rOutl, Rectangle& rPaintRect ) const