summaryrefslogtreecommitdiff
path: root/starmath/source/unomodel.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-06-12 14:23:13 +0000
committerThomas Lange <tl@openoffice.org>2001-06-12 14:23:13 +0000
commit44b9afb67c6cd6b84dbb07f3a2fc56f4b6695819 (patch)
tree56445bae4297cf91b40be9575498e2cdcb4ecf31 /starmath/source/unomodel.cxx
parent64827f7e27b63a0e35577db89bd27f45f6381759 (diff)
##911## exception if font could not be set replaced by apply the font only with its name and size
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r--starmath/source/unomodel.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 18072b2a1126..1257da31e73d 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomodel.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mtg $ $Date: 2001-06-11 16:34:14 $
+ * last change: $Author: tl $ $Date: 2001-06-12 15:23:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -443,7 +443,12 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
}
}
if(!bSet)
- throw IllegalArgumentException();
+ {
+ SmFace aSet(sFontName, aFormat.GetBaseSize());
+ aSet.SetAlign(ALIGN_BASELINE);
+ aFormat.SetFont((*ppEntries)->mnMemberId, aSet);
+ //throw IllegalArgumentException();
+ }
}
}
break;