summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdtxhdl.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2001-11-29 14:54:03 +0000
committerArmin Weiss <aw@openoffice.org>2001-11-29 14:54:03 +0000
commiteb34a1064239d07727e1bd6d5fc167ade6d7a04c (patch)
treef347db23ba901798edae1120eae8d255939fec00 /svx/source/svdraw/svdtxhdl.cxx
parent2342e035b2eebefc9fb5fa5cf97615dfdb6ee29c (diff)
#95395# scale from top-right when vertical text
Diffstat (limited to 'svx/source/svdraw/svdtxhdl.cxx')
-rw-r--r--svx/source/svdraw/svdtxhdl.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdtxhdl.cxx b/svx/source/svdraw/svdtxhdl.cxx
index 1f877274048a..7497949384b9 100644
--- a/svx/source/svdraw/svdtxhdl.cxx
+++ b/svx/source/svdraw/svdtxhdl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdtxhdl.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: aw $ $Date: 2001-05-18 14:50:39 $
+ * last change: $Author: aw $ $Date: 2001-11-29 15:54:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -131,10 +131,17 @@ void ImpTextPortionHandler::ConvertToPathObj(SdrObjGroup& rGroup, FASTBOOL bPoly
rOutliner.StripPortions();
rOutliner.SetDrawPortionHdl(Link());
rOutliner.Clear();
- if (bFitToSize) {
+
+ if(bFitToSize)
+ {
Fraction nX(aAnchorRect.Right()-aAnchorRect.Left(),aTextRect.Right()-aTextRect.Left());
Fraction nY(aAnchorRect.Bottom()-aAnchorRect.Top(),aTextRect.Bottom()-aTextRect.Top());
- pGroup->NbcResize(aAnchorRect.TopLeft(),nX,nY);
+
+ // #95395# scale from top-right when vertical text
+ if(rOutliner.IsVertical())
+ pGroup->NbcResize(aAnchorRect.TopRight(),nX,nY);
+ else
+ pGroup->NbcResize(aAnchorRect.TopLeft(),nX,nY);
}
if (rTextObj.aGeo.nDrehWink!=0) { // #35825# Rotieren erst nach Resize (wg. FitToSize)
pGroup->NbcRotate(aFormTextBoundRect.TopLeft(),rTextObj.aGeo.nDrehWink,rTextObj.aGeo.nSin,rTextObj.aGeo.nCos);