summaryrefslogtreecommitdiff
path: root/xmloff/source/core/xmlehelp.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2001-05-21 11:35:01 +0000
committerBjörn Milcke <bm@openoffice.org>2001-05-21 11:35:01 +0000
commit1c98d17d10630670c4d4217c920c98a1eeb06058 (patch)
tree59e4ab48814a99a3c8ba30585ae038a391401087 /xmloff/source/core/xmlehelp.cxx
parent56776790f9960415a2ed25b907a589c13582be63 (diff)
#85945# conversion for pt -> twip added, default case (from pt) changed to inches
Diffstat (limited to 'xmloff/source/core/xmlehelp.cxx')
-rw-r--r--xmloff/source/core/xmlehelp.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/core/xmlehelp.cxx b/xmloff/source/core/xmlehelp.cxx
index b8ea14c4f1..ba08eb6be7 100644
--- a/xmloff/source/core/xmlehelp.cxx
+++ b/xmloff/source/core/xmlehelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlehelp.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: bm $ $Date: 2001-05-21 11:21:28 $
+ * last change: $Author: bm $ $Date: 2001-05-21 12:35:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -413,19 +413,19 @@ double SvXMLExportHelper::GetConversionFactor(::rtl::OUStringBuffer& rUnit,
pUnit = sXML_unit_cm;
break;
+ case MAP_TWIP:
+ // 1twip = 72 / 1440 pt (exactly)
+ fRetval = 20.0; // 1440.0 / 72.0
+ pUnit = sXML_unit_pt;
+ break;
+
case MAP_INCH:
+ default:
+ DBG_ASSERT(MAP_INCH == eDestUnit, "output unit not supported for pt values");
// 1in = 72 pt (exactly)
fRetval = ( 1.0 / 72.0 );
pUnit = sXML_unit_inch;
break;
-
- case MAP_TWIP:
- default:
- // 1pt = 1pt (exactly)
- DBG_ASSERT(MAP_POINT == eDestUnit, "output unit not supported for pt values");
- fRetval = 1.0;
- pUnit = sXML_unit_pt;
- break;
}
break;
}