diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-12-07 09:47:16 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-12-07 09:47:16 +0000 |
commit | 3e9615a3e7759c62953f7a2d60abe4c8ce47eab6 (patch) | |
tree | 02026e3cafee6d1288f10afedbe306b915a37cfc /svx/source/svdraw/svdotext.cxx | |
parent | 27527fb16ec0f98f5a40e855ff61422784dd148c (diff) |
INTEGRATION: CWS tl05 (1.68.62); FILE MERGED
2004/11/24 14:28:15 sj 1.68.62.1: #i37493# TakeContour: not taking drawoutliner if no model
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 581ed32dc5fa..a00083289952 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdotext.cxx,v $ * - * $Revision: 1.69 $ + * $Revision: 1.70 $ * - * last change: $Author: rt $ $Date: 2004-11-26 18:14:51 $ + * last change: $Author: rt $ $Date: 2004-12-07 10:47:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1807,13 +1807,14 @@ void SdrTextObj::TakeContour(XPolyPolygon& rPoly) const { SdrAttrObj::TakeContour(rPoly); - // #80328# using Clone()-Paint() strategy inside TakeContour() leaves a destroyed - // SdrObject as pointer in DrawOutliner. Set *this again in fetching the outliner - // in every case - SdrOutliner& rOutliner=ImpGetDrawOutliner(); - // und nun noch ggf. das BoundRect des Textes dazu - if (pOutlinerParaObject!=NULL && !IsFontwork() && !IsContourTextFrame()) { + if ( pModel && pOutlinerParaObject && !IsFontwork() && !IsContourTextFrame() ) + { + // #80328# using Clone()-Paint() strategy inside TakeContour() leaves a destroyed + // SdrObject as pointer in DrawOutliner. Set *this again in fetching the outliner + // in every case + SdrOutliner& rOutliner=ImpGetDrawOutliner(); + Rectangle aAnchor; Rectangle aR; TakeTextRect(rOutliner,aR,FALSE,&aAnchor); |