summaryrefslogtreecommitdiff
path: root/svx/source/dialog/align.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-09-26 13:13:43 +0000
committerNiklas Nebel <nn@openoffice.org>2002-09-26 13:13:43 +0000
commitd7e57e609df7c2c36dc7b49f14a8aae471f2d7fc (patch)
tree31d12039079d351ae88d22cc27d7698d61fadffd /svx/source/dialog/align.cxx
parentf001ae3ec6608f80ca70032a10d3a60e1ec785ff (diff)
#103396# use point instead of inch etc. for grid spacing values
Diffstat (limited to 'svx/source/dialog/align.cxx')
-rw-r--r--svx/source/dialog/align.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/source/dialog/align.cxx b/svx/source/dialog/align.cxx
index c1510c7444c8..271c4715f0ef 100644
--- a/svx/source/dialog/align.cxx
+++ b/svx/source/dialog/align.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: align.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: dr $ $Date: 2002-09-12 09:53:46 $
+ * last change: $Author: nn $ $Date: 2002-09-26 14:13:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -185,6 +185,15 @@ SvxAlignmentTabPage::SvxAlignmentTabPage( Window* pParent,
switch ( eFUnit )
{
+ // #103396# the default value (1pt) can't be accurately represented in
+ // inches or pica with two decimals, so point is used instead.
+ case FUNIT_PICA:
+ case FUNIT_INCH:
+ case FUNIT_FOOT:
+ case FUNIT_MILE:
+ eFUnit = FUNIT_POINT;
+ break;
+
case FUNIT_CM:
case FUNIT_M:
case FUNIT_KM: