summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/sizedev.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-05-15 12:41:30 +0000
committerNiklas Nebel <nn@openoffice.org>2001-05-15 12:41:30 +0000
commit322dd2f8e2d2c4edd7104dcd2bc256d470119175 (patch)
tree6d0be60a56ceb5722b0fca040e2b3c846b6701fd /sc/source/ui/docshell/sizedev.cxx
parent2facc342a294db7954afc25893479e793f471e95 (diff)
#86985# if printer is used, set map mode
Diffstat (limited to 'sc/source/ui/docshell/sizedev.cxx')
-rw-r--r--sc/source/ui/docshell/sizedev.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/sizedev.cxx b/sc/source/ui/docshell/sizedev.cxx
index ac9e3394de85..60b818c14650 100644
--- a/sc/source/ui/docshell/sizedev.cxx
+++ b/sc/source/ui/docshell/sizedev.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sizedev.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: nn $ $Date: 2001-05-11 16:23:52 $
+ * last change: $Author: nn $ $Date: 2001-05-15 13:41:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,6 +82,9 @@ ScSizeDeviceProvider::ScSizeDeviceProvider( ScDocShell* pDocSh )
{
pDevice = pDocSh->GetPrinter();
bOwner = FALSE;
+
+ aOldMapMode = pDevice->GetMapMode();
+ pDevice->SetMapMode( MAP_PIXEL ); // GetNeededSize needs pixel MapMode
}
else
{
@@ -101,5 +104,7 @@ ScSizeDeviceProvider::~ScSizeDeviceProvider()
{
if (bOwner)
delete pDevice;
+ else
+ pDevice->SetMapMode( aOldMapMode );
}