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/3134

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/34/3134/1

fdo#62470 fix the table format dialog reading

this will fix the wrong reading in table format borders
dialog.

Change-Id: I624cf7c162d3983fe4625e8e2e6fef4fc556eed0
---
M sw/source/core/docnode/ndtbl1.cxx
1 file changed, 18 insertions(+), 1 deletion(-)



diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx
index e38d9aa6..62725c8 100644
--- a/sw/source/core/docnode/ndtbl1.cxx
+++ b/sw/source/core/docnode/ndtbl1.cxx
@@ -934,7 +934,8 @@
              bRightSet    = sal_False,
              bHoriSet     = sal_False,
              bVertSet     = sal_False,
-             bDistanceSet = sal_False;
+             bDistanceSet = sal_False,
+             bRTLTab      = sal_False;
 
         aSetBoxInfo.ResetFlags();
 
@@ -1115,6 +1116,22 @@
                 }
             }
         }
+
+        // fdo#62470 fix the reading for table format.
+        if ( bRTLTab )
+        {
+            SvxBoxItem     aTempBox    ((const SvxBoxItem    &) rSet.Get(RES_BOX    ));
+            SvxBoxInfoItem aTempBoxInfo((const SvxBoxInfoItem&) rSet.Get(SID_ATTR_BORDER_INNER));
+
+            aTempBox.SetLine( aSetBox.GetRight(), BOX_LINE_RIGHT);
+            aSetBox.SetLine( aSetBox.GetLeft(), BOX_LINE_RIGHT);
+            aSetBox.SetLine( aTempBox.GetRight(), BOX_LINE_LEFT);
+
+            aTempBoxInfo.SetValid( VALID_LEFT, aSetBoxInfo.IsValid(VALID_LEFT) );
+            aSetBoxInfo.SetValid( VALID_LEFT, aSetBoxInfo.IsValid(VALID_RIGHT) );
+            aSetBoxInfo.SetValid( VALID_RIGHT, aTempBoxInfo.IsValid(VALID_LEFT) );
+        }
+
         rSet.Put( aSetBox );
         rSet.Put( aSetBoxInfo );
     }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I624cf7c162d3983fe4625e8e2e6fef4fc556eed0
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Faisal al-otaibi <fmalotaibi@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.