summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/textbodyproperties.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-05-30 13:45:36 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-05-30 13:45:36 +0200
commit53c376d35b7223d53e8c9403390afe53d1f69089 (patch)
tree1c91c821cef7e0ef685403fdb4dd91993aadf1ec /oox/source/drawingml/textbodyproperties.cxx
parent2b6f2beec6ceffbde287ebef295eb27bb7f35d00 (diff)
bnc#870237: wrong text position in grouped list
In grouped list text area does not cover the whole shape but just a part of it at the top. To get the same visual effect modify text distance attribute. Change-Id: I32f30d0afbc1975f940c4562ec65f46596e97060
Diffstat (limited to 'oox/source/drawingml/textbodyproperties.cxx')
-rw-r--r--oox/source/drawingml/textbodyproperties.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/drawingml/textbodyproperties.cxx b/oox/source/drawingml/textbodyproperties.cxx
index 850092c2dda1..9899fbbe18e5 100644
--- a/oox/source/drawingml/textbodyproperties.cxx
+++ b/oox/source/drawingml/textbodyproperties.cxx
@@ -81,8 +81,10 @@ void TextBodyProperties::pushRotationAdjustments( sal_Int32 nRotation )
// Hack for n#760986
// TODO: Preferred method would be to have a textbox on top
// of the shape and the place it according to the (off,ext)
- if( nOff == 0 && moTextOffX && mbAnchorCtr ) nVal = *moTextOffX;
- if( nOff == 1 && moTextOffY && mbAnchorCtr ) nVal = *moTextOffY;
+ if( nOff == 0 && moTextOffLeft && mbAnchorCtr ) nVal = *moTextOffLeft;
+ if( nOff == 1 && moTextOffUpper ) nVal = *moTextOffLeft;
+ if( nOff == 2 && moTextOffRight && mbAnchorCtr ) nVal = *moTextOffRight;
+ if( nOff == 3 && moTextOffLower ) nVal = *moTextOffLower;
if( nVal < 0 ) nVal = 0;
if( moInsets[i] )