summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-01-20 12:24:58 +0000
committerOliver Bolte <obo@openoffice.org>2004-01-20 12:24:58 +0000
commit43a9213ec3eb5ed4ef97cea0ca640ab022464a13 (patch)
tree5adc67743967170eee9d2e25d5940f091168cdb5 /starmath/source/node.cxx
parentbca25960e7417b904bb7b2596570e67a36acf235 (diff)
INTEGRATION: CWS tlapi2 (1.29.10); FILE MERGED
2003/11/12 15:23:58 tl 1.29.10.1: #i21741# font size problem in SmSpecialNode fixed
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 77e0a1d7aac5..cd1118691ead 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: node.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 16:56:08 $
+ * last change: $Author: obo $ $Date: 2004-01-20 13:24:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2841,7 +2841,6 @@ void SmSpecialNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell
const SmSym *pSym;
SmModule *pp = SM_MOD1();
- Size aOldSize = GetFont().GetSize();
if (pSym = rDocShell.GetSymSetManager().GetSymbolByName(GetToken().aText))
{
SetText( pSym->GetCharacter() );
@@ -2852,7 +2851,8 @@ void SmSpecialNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell
SetText( GetToken().aText );
GetFont() = rFormat.GetFont(FNT_VARIABLE);
}
- GetFont().SetSize(aOldSize);
+ // use same font size as is used for variables
+ GetFont().SetSize( rFormat.GetFont( FNT_VARIABLE ).GetSize() );
//! eigentlich sollten nur WEIGHT_NORMAL und WEIGHT_BOLD vorkommen...
//! In der sms-Datei gibt es jedoch zB auch 'WEIGHT_ULTRALIGHT'