summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-06-04 10:54:26 +0000
committerThomas Lange <tl@openoffice.org>2002-06-04 10:54:26 +0000
commit6a56cbb388852be8b19d9ca1947ed44888741522 (patch)
treed089b9a9be981351354fcb0f1189841f2bf8e7c8 /starmath/source/node.cxx
parent84a5f35145cd01ccbded6bccc008035d884e5513 (diff)
#99864# width of scaleable brackets fixed (same width as in SO5.2)
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 39b75082f262..951c8eacd590 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: node.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: tl $ $Date: 2002-05-31 14:23:22 $
+ * last change: $Author: tl $ $Date: 2002-06-04 11:54:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1715,6 +1715,10 @@ void SmBraceNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
"Sm : unterschiedliche Fontgren");
aSize.Width() = Min((long) nBraceHeight * 60L / 100L,
rFormat.GetBaseSize().Height() * 3L / 2L);
+ // correction factor since change from StarMath to StarSymbol font
+ // because of the different font width in the FontMetric
+ aSize.Width() *= 182;
+ aSize.Width() /= 267;
xub_Unicode cChar = pLeft->GetToken().cMathChar;
if (cChar != MS_LINE && cChar != MS_DLINE)