summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-11-08 13:01:02 +0100
committerRadek Doulik <rodo@novell.com>2011-11-08 13:01:42 +0100
commit60e35702199f19fa9aa19027d4783937ac7ee834 (patch)
tree2e91be33975688b73ab9ab478f0851a392bd3405 /svx
parent8ca3ca455abe84672311e08ff6999d7a27010e1d (diff)
fix text frame rectangle for ooxml customshapes
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index 76e523e154f3..fa6d3fa1be81 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1149,8 +1149,8 @@ Rectangle EnhancedCustomShape2d::GetTextRect() const
nIndex = 0;
if ( bTextFlow && ( nSize > 1 ) )
nIndex++;
- Point aTopLeft( GetPoint( seqTextFrames[ nIndex ].TopLeft, sal_True, sal_True ) );
- Point aBottomRight( GetPoint( seqTextFrames[ nIndex ].BottomRight, sal_True, sal_True ) );
+ Point aTopLeft( GetPoint( seqTextFrames[ nIndex ].TopLeft, !bOOXMLShape, sal_True ) );
+ Point aBottomRight( GetPoint( seqTextFrames[ nIndex ].BottomRight, !bOOXMLShape, sal_True ) );
if ( bFlipH )
{
aTopLeft.X() = aLogicRect.GetWidth() - aTopLeft.X();
@@ -1162,6 +1162,7 @@ Rectangle EnhancedCustomShape2d::GetTextRect() const
aBottomRight.Y() = aLogicRect.GetHeight() - aBottomRight.Y();
}
Rectangle aRect( aTopLeft, aBottomRight );
+ OSL_TRACE("EnhancedCustomShape2d::GetTextRect: %d x %d", aRect.GetWidth(), aRect.GetHeight());
aRect.Move( aLogicRect.Left(), aLogicRect.Top() );
aRect.Justify();
return aRect;