summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2001-09-10 10:37:50 +0000
committerSven Jacobi <sj@openoffice.org>2001-09-10 10:37:50 +0000
commitf52bebb37be546cf0ef01d597e0497140d0ba382 (patch)
tree1e2e839f6e2d295d0b56e6671234f7d932db351c /svx
parente621138b74d5e59082906234eccd56b67e93d80b (diff)
#88360# setting text snaprect after setting the text attributes, because otherwise default textattributes are active and a textbox cannot been smaller than 1 cm
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdfppt.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdfppt.cxx b/svx/source/svdraw/svdfppt.cxx
index c6a4ee357ac6..5f1a6b244bb6 100644
--- a/svx/source/svdraw/svdfppt.cxx
+++ b/svx/source/svdraw/svdfppt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdfppt.cxx,v $
*
- * $Revision: 1.66 $
+ * $Revision: 1.67 $
*
- * last change: $Author: sj $ $Date: 2001-09-07 16:09:44 $
+ * last change: $Author: sj $ $Date: 2001-09-10 11:37:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1167,7 +1167,6 @@ SdrObject* SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
}
pTObj = new SdrRectObj( eTextKind );
pTObj->SetModel( pSdrModel );
- pTObj->SetSnapRect( rTextRect );
if ( nTextRotationAngle )
{
double a = nTextRotationAngle * nPi180;
@@ -1363,8 +1362,8 @@ SdrObject* SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
aSet.Put( SdrTextRightDistItem( nTextRight ) );
aSet.Put( SdrTextUpperDistItem( nTextTop ) );
aSet.Put( SdrTextLowerDistItem( nTextBottom ) );
-
- pTObj->SetItemSet(aSet);
+ pTObj->SetItemSet( aSet );
+ pTObj->SetSnapRect( rTextRect );
pTObj = ReadObjText( &aTextObj, pTObj, rData.pPage );
if ( pTObj )
{ // rotate text with shape ?