summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-22 13:36:14 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-22 13:36:14 +0200
commit053897811bca93bc94557e6fcd75021b8daebdcb (patch)
treead73a8ea4ffeead2ee58b9d68e8b15c8f5f13f08 /svtools
parent26885705757de372413f99d27e6e20e536a860a7 (diff)
vcl115: #i114666# fix some warnings (thanks pjanik!)
Diffstat (limited to 'svtools')
-rwxr-xr-xsvtools/source/filter.vcl/filter/exportdialog.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/filter.vcl/filter/exportdialog.cxx b/svtools/source/filter.vcl/filter/exportdialog.cxx
index c04b587b6278..20cc46a30ab5 100755
--- a/svtools/source/filter.vcl/filter/exportdialog.cxx
+++ b/svtools/source/filter.vcl/filter/exportdialog.cxx
@@ -396,7 +396,7 @@ awt::Size ExportDialog::GetOriginalSize()
}
}
}
- return awt::Size( aShapesRange.getWidth(), aShapesRange.getHeight() );
+ return awt::Size( static_cast<sal_Int32>(aShapesRange.getWidth()), static_cast<sal_Int32>(aShapesRange.getHeight()) );
}
void ExportDialog::GetGraphicSource()
@@ -1227,23 +1227,23 @@ void ExportDialog::updatePreview()
if ( fXRatio > 1.0 )
{
aSize.Width() = maSize.Width > aFixedBitmapSize.Width() ? maSize.Width : aFixedBitmapSize.Width();
- aSize.Width() /= fXRatio;
+ aSize.Width() /= static_cast<long int>(fXRatio);
}
else
{
aSize.Width() = maSize.Width < aFixedBitmapSize.Width() ? maSize.Width : aFixedBitmapSize.Width();
- aSize.Width() /= fXRatio;
+ aSize.Width() /= static_cast<long int>(fXRatio);
}
if ( fYRatio > 1.0 )
{
aSize.Height() = maSize.Height > aFixedBitmapSize.Height() ? maSize.Height : aFixedBitmapSize.Height();
- aSize.Height() /= fYRatio;
+ aSize.Height() /= static_cast<long int>(fYRatio);
}
else
{
aSize.Height() = maSize.Height < aFixedBitmapSize.Height() ? maSize.Height : aFixedBitmapSize.Height();
- aSize.Height() /= fYRatio;
+ aSize.Height() /= static_cast<long int>(fYRatio);
}
if ( aSize.Width() < maSize.Width )
@@ -1260,7 +1260,7 @@ void ExportDialog::updatePreview()
Bitmap aCroppedBitmap( maBitmap );
aCroppedBitmap.Crop( Rectangle( aPos, aSize ) );
aSize = aCroppedBitmap.GetSizePixel();
- aSize = Size( aSize.Width() * fXRatio, aSize.Height() * fYRatio );
+ aSize = Size( static_cast<long int>(aSize.Width() * fXRatio), static_cast<long int>(aSize.Height() * fYRatio) );
aCroppedBitmap.Scale( aSize );
if ( aSize.Width() > aFixedBitmapSize.Width() )
@@ -1347,7 +1347,7 @@ void ExportDialog::updateControls()
case 0 : nResolution = maResolution.Width / 100; break; // pixels / cm
case 2 : nResolution = maResolution.Width; break; // pixels / meter
default:
- case 1 : nResolution = maResolution.Width * 0.0254; break; // pixels / inch
+ case 1 : nResolution = static_cast< sal_Int32 >(maResolution.Width * 0.0254); break; // pixels / inch
}
maNfResolution.SetValue( nResolution );