diff options
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 7c4721284eb1..d1848b02896c 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -1453,7 +1453,8 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if ( bRet && (bSetColWidths || bSetRowHeights) ) { // Adjust column width/row height; base 100% zoom Fraction aZoom( 1, 1 ); - double nPPTX = ScGlobal::nScreenPPTX * (double) aZoom / GetOutputFactor(); // Factor is printer display ratio + double nPPTX = ScGlobal::nScreenPPTX * (double) aZoom / + static_cast< double >( GetOutputFactor() ); // Factor is printer display ratio double nPPTY = ScGlobal::nScreenPPTY * (double) aZoom; VirtualDevice aVirtDev; // all sheets (for Excel import) @@ -2628,7 +2629,7 @@ ScDocShell::ScDocShell( const ScDocShell& rShell ) : SfxListener(), aDocument ( SCDOCMODE_DOCUMENT, this ), aDdeTextFmt(OUString("TEXT")), - nPrtToScreenFactor( 1.0 ), + nPrtToScreenFactor( 1, 1 ), pImpl ( new DocShell_Impl ), bHeaderOn ( true ), bFooterOn ( true ), @@ -2673,7 +2674,7 @@ ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) : SfxObjectShell( i_nSfxCreationFlags ), aDocument ( SCDOCMODE_DOCUMENT, this ), aDdeTextFmt(OUString("TEXT")), - nPrtToScreenFactor( 1.0 ), + nPrtToScreenFactor( 1, 1 ), pImpl ( new DocShell_Impl ), bHeaderOn ( true ), bFooterOn ( true ), |