[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 18 10:16:09 UTC 2019


 sw/source/core/text/txtfrm.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 36571ca57fc1699498f3a335a92c2c2310f07116
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon Feb 18 09:29:02 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Feb 18 11:15:47 2019 +0100

    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 at collabora.com>
    Tested-by: Jenkins

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
     {


More information about the Libreoffice-commits mailing list