summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-18 09:29:02 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-18 11:15:47 +0100
commit36571ca57fc1699498f3a335a92c2c2310f07116 (patch)
treefed56aed84edd4bb3a3b6616d9d2c9950ccdc9d6 /sw
parentc7f5da8b04f6e3d69953e38cb3f3bde86104d85a (diff)
sw: remove not needed condition in SwTextFrame::SwitchHorizontalToVertical()
The distance of the content from the left edge of the parent frame (in vertical mode) is the same in both the top-to-bottom and in the bottom-to-top cases. Change-Id: I9dff075276b884cb8742584cbd4b8310e7cea553 Reviewed-on: https://gerrit.libreoffice.org/67955 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/txtfrm.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 8902ca0483ca..6d3cc8f5eeea 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -502,10 +502,7 @@ void SwTextFrame::SwitchHorizontalToVertical( SwRect& rRect ) const
if ( IsVertLR() )
{
- if (IsVertLRBT())
- rRect.Left(getFrameArea().Left() + nOfstY);
- else
- rRect.Left(getFrameArea().Left() + nOfstY);
+ rRect.Left(getFrameArea().Left() + nOfstY);
}
else
{