summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/UnoGraphicExporter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodraw/UnoGraphicExporter.cxx')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 1b975d0bc10d..0d15e88fb61b 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -111,8 +111,8 @@ namespace {
Sequence< PropertyValue > maFilterData;
- boost::rational<sal_Int64> maScaleX;
- boost::rational<sal_Int64> maScaleY;
+ boost::rational<long> maScaleX;
+ boost::rational<long> maScaleY;
ExportSettings( SdrModel* pDoc );
};
@@ -407,7 +407,7 @@ VirtualDevice* GraphicExporter::CreatePageVDev( SdrPage* pPage, sal_uIntPtr nWid
// use scaling?
if( nWidthPixel )
{
- const boost::rational<sal_Int64> aFrac( (long) nWidthPixel, pVDev->LogicToPixel( aPageSize, aMM ).Width() );
+ const boost::rational<long> aFrac( (long) nWidthPixel, pVDev->LogicToPixel( aPageSize, aMM ).Width() );
aMM.SetScaleX( aFrac );
@@ -417,7 +417,7 @@ VirtualDevice* GraphicExporter::CreatePageVDev( SdrPage* pPage, sal_uIntPtr nWid
if( nHeightPixel )
{
- const boost::rational<sal_Int64> aFrac( (long) nHeightPixel, pVDev->LogicToPixel( aPageSize, aMM ).Height() );
+ const boost::rational<long> aFrac( (long) nHeightPixel, pVDev->LogicToPixel( aPageSize, aMM ).Height() );
if( nWidthPixel == 0 )
aMM.SetScaleX( aFrac );
@@ -577,25 +577,25 @@ void GraphicExporter::ParseSettings( const Sequence< PropertyValue >& aDescripto
{
sal_Int32 nVal = 1;
if( pDataValues->Value >>= nVal )
- rSettings.maScaleX = boost::rational<sal_Int64>( nVal, rSettings.maScaleX.denominator() );
+ rSettings.maScaleX = boost::rational<long>( nVal, rSettings.maScaleX.denominator() );
}
else if ( pDataValues->Name == "ScaleXDenominator" )
{
sal_Int32 nVal = 1;
if( pDataValues->Value >>= nVal )
- rSettings.maScaleX = boost::rational<sal_Int64>( rSettings.maScaleX.numerator(), nVal );
+ rSettings.maScaleX = boost::rational<long>( rSettings.maScaleX.numerator(), nVal );
}
else if ( pDataValues->Name == "ScaleYNumerator" )
{
sal_Int32 nVal = 1;
if( pDataValues->Value >>= nVal )
- rSettings.maScaleY = boost::rational<sal_Int64>( nVal, rSettings.maScaleY.denominator() );
+ rSettings.maScaleY = boost::rational<long>( nVal, rSettings.maScaleY.denominator() );
}
else if ( pDataValues->Name == "ScaleYDenominator" )
{
sal_Int32 nVal = 1;
if( pDataValues->Value >>= nVal )
- rSettings.maScaleY = boost::rational<sal_Int64>( rSettings.maScaleY.numerator(), nVal );
+ rSettings.maScaleY = boost::rational<long>( rSettings.maScaleY.numerator(), nVal );
}
pDataValues++;