summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxtr.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-03-12 08:55:52 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-03-12 08:55:52 +0000
commit122e5a1351b116ed665e71bfdf2dab836c4127a3 (patch)
tree18ea1917d18c35f82b11f54ff8103325df281cdf /svx/source/svdraw/svdotxtr.cxx
parent267a39cad2b9817e049b06b05874199633cde1cc (diff)
INTEGRATION: CWS impresstables2 (1.15.72); FILE MERGED
2008/02/29 11:28:16 cl 1.15.72.1: #i68103# fixed crash due to recursive use of GetDrawOutliner()
Diffstat (limited to 'svx/source/svdraw/svdotxtr.cxx')
-rw-r--r--svx/source/svdraw/svdotxtr.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdotxtr.cxx b/svx/source/svdraw/svdotxtr.cxx
index 58a178b8579b..93ed0419676e 100644
--- a/svx/source/svdraw/svdotxtr.cxx
+++ b/svx/source/svdraw/svdotxtr.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdotxtr.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 19:09:42 $
+ * last change: $Author: rt $ $Date: 2008-03-12 09:55:52 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -355,9 +355,10 @@ SdrObject* SdrTextObj::ImpConvertObj(FASTBOOL bToPoly) const
{
if (!ImpCanConvTextToCurve()) return NULL;
SdrObjGroup* pGroup=new SdrObjGroup();
- SdrOutliner& rOutl=ImpGetDrawOutliner();
- rOutl.SetUpdateMode(TRUE);
- ImpTextPortionHandler aConverter(rOutl,*this);
+
+ boost::shared_ptr< SdrOutliner > xOutl( const_cast< SdrTextObj* >(this)->CreateDrawOutliner() );
+ xOutl->SetUpdateMode(TRUE);
+ ImpTextPortionHandler aConverter(*(xOutl.get()),*this);
aConverter.ConvertToPathObj(*pGroup,bToPoly);