summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Loeschky <dl@openoffice.org>2001-08-20 14:58:35 +0000
committerDieter Loeschky <dl@openoffice.org>2001-08-20 14:58:35 +0000
commitc5bf0baaf6a7b312ac7b1f142e52e9cdee32b88c (patch)
treeea2fee32c0efd846b1f11f75a58202cb2612d8d0
parent5045b1be3d9e18657c04573d7afdbae1f3a6c341 (diff)
#88967# NbcSetText(): setting default style sheet
-rw-r--r--svx/source/svdraw/svdotext.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index bc1e3134d674..33a957cccb55 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdotext.cxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: aw $ $Date: 2001-08-20 14:51:05 $
+ * last change: $Author: dl $ $Date: 2001-08-20 15:58:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -268,6 +268,7 @@ void SdrTextObj::FitFrameToTextSize()
void SdrTextObj::NbcSetText(const XubString& rStr)
{
SdrOutliner& rOutliner=ImpGetDrawOutliner();
+ rOutliner.SetStyleSheet( 0, GetStyleSheet());
OutputDevice* pRef1=rOutliner.GetRefDevice();
rOutliner.SetUpdateMode(TRUE);
rOutliner.SetText(rStr,rOutliner.GetParagraph( 0 ));
@@ -295,6 +296,7 @@ void SdrTextObj::SetText(const XubString& rStr)
void SdrTextObj::NbcSetText(SvStream& rInput, USHORT eFormat)
{
SdrOutliner& rOutliner=ImpGetDrawOutliner();
+ rOutliner.SetStyleSheet( 0, GetStyleSheet());
rOutliner.Read(rInput,eFormat);
OutlinerParaObject* pNewText=rOutliner.CreateParaObject();
rOutliner.SetUpdateMode(TRUE);