Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1805

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/05/1805/1

Resolves fdo#59117 fixes missing border of last column

The table's layout should not change to RTL with the selection
of paragaraph left, right toolbar icons.  It should change the
 layout only when the document is in RTL.

Change-Id: I3c9a95169ea1581d44c176ec260a9cbf818913ab
---
M svx/source/table/viewcontactoftableobj.cxx
1 file changed, 9 insertions(+), 7 deletions(-)



diff --git a/svx/source/table/viewcontactoftableobj.cxx b/svx/source/table/viewcontactoftableobj.cxx
index a74dc60..42501f1 100644
--- a/svx/source/table/viewcontactoftableobj.cxx
+++ b/svx/source/table/viewcontactoftableobj.cxx
@@ -17,7 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-
+#include "vcl/svapp.hxx"
 #include "viewcontactoftableobj.hxx"
 #include <svx/svdotable.hxx>
 #include <com/sun/star/table/XTable.hpp>
@@ -357,7 +357,7 @@
                 }
             }
 
-            if(!getRightLine().isEmpty() && getRightIsOutside())
+            if(!getRightLine().isEmpty())
             {
                 // create right line from top to bottom
                 const basegfx::B2DPoint aStart(getTransform() * basegfx::B2DPoint(1.0, 0.0));
@@ -491,12 +491,13 @@
                             // mirror all left lines
                             bMirror = (bIsRTL ? 0 != nX : nX != nColCount);
                         }
+                        if(bMirror)
+                        {
+                            aLine.SetMirrorWidths( );
+                        }
+
                     }
 
-                    if(bMirror)
-                    {
-                        aLine.SetMirrorWidths( );
-                    }
 
                     return;
                 }
@@ -523,7 +524,8 @@
                 if(nAllCount)
                 {
                     const sdr::table::TableLayouter& rTableLayouter = rTableObj.getTableLayouter();
-                    const bool bIsRTL(com::sun::star::text::WritingMode_RL_TB == 
rTableObj.GetWritingMode());
+                    const bool bIsRTL(Application::GetSettings().GetLayoutRTL());
+
                     sdr::table::CellPos aCellPos;
                     sdr::table::CellRef xCurrentCell;
                     basegfx::B2IRectangle aCellArea;

-- 
To view, visit https://gerrit.libreoffice.org/1805
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3c9a95169ea1581d44c176ec260a9cbf818913ab
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Karthikeyan Krishnamurthi <karthikeyan@kacst.edu.sa>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.