summaryrefslogtreecommitdiff
path: root/sd/source/filter/grf/sdgrffilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/filter/grf/sdgrffilter.cxx')
-rw-r--r--sd/source/filter/grf/sdgrffilter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx
index 60900a642ca8..855ec8290a1a 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -188,19 +188,19 @@ bool SdGRFFilter::Import()
if ( ( ( aGrfSize.Height() > aPagSize.Height() ) || ( aGrfSize.Width() > aPagSize.Width() ) ) &&
aGrfSize.Height() && aPagSize.Height() )
{
- double fGrfWH = (double) aGrfSize.Width() / aGrfSize.Height();
- double fWinWH = (double) aPagSize.Width() / aPagSize.Height();
+ double fGrfWH = static_cast<double>(aGrfSize.Width()) / aGrfSize.Height();
+ double fWinWH = static_cast<double>(aPagSize.Width()) / aPagSize.Height();
// adjust graphic to page size (scales)
if( fGrfWH < fWinWH )
{
- aGrfSize.Width() = (long) ( aPagSize.Height() * fGrfWH );
+ aGrfSize.Width() = static_cast<long>( aPagSize.Height() * fGrfWH );
aGrfSize.Height() = aPagSize.Height();
}
else if( fGrfWH > 0.F )
{
aGrfSize.Width() = aPagSize.Width();
- aGrfSize.Height()= (long) ( aPagSize.Width() / fGrfWH );
+ aGrfSize.Height()= static_cast<long>( aPagSize.Width() / fGrfWH );
}
}