summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/grfpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/grfpage.cxx')
-rw-r--r--cui/source/tabpages/grfpage.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 60ae1da9add9..1d3694b22a65 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -671,9 +671,9 @@ void SvxGrfCropPage::GraphicHasChanged( sal_Bool bFound )
sTemp += aFld.GetText();
if ( aOrigPixelSize.Width() && aOrigPixelSize.Height() ) {
- int ax = int(floor((float)aOrigPixelSize.Width() /
+ sal_Int32 ax = sal_Int32(floor((float)aOrigPixelSize.Width() /
((float)aOrigSize.Width()/TWIP_TO_INCH)+0.5));
- int ay = int(floor((float)aOrigPixelSize.Height() /
+ sal_Int32 ay = sal_Int32(floor((float)aOrigPixelSize.Height() /
((float)aOrigSize.Height()/TWIP_TO_INCH)+0.5));
sTemp += OUString(" ");
sTemp += CUI_RESSTR( STR_PPI );
@@ -682,7 +682,7 @@ void SvxGrfCropPage::GraphicHasChanged( sal_Bool bFound )
sPPI += OUString( sal_Unicode (0x00D7) );
sPPI += OUString::valueOf(ay);
}
- sTemp.replaceAll("%1", sPPI);
+ sTemp = sTemp.replaceAll("%1", sPPI);
}
aOrigSizeFT.SetText( sTemp );
}