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


Hello,
I am working in (Merged Cell's borders vanishes when changing sheet
direction to (Right-To-Left)).
 https://bugs.documentfoundation.org/show_bug.cgi?id=34837
I modify the code and now we can make border for the merge cell in RTL mode.

First select the cell
then  select  border
then merge
Go to sheet and select right to left.

That way will make the border in both side.

But making the  merge first  then border still needs to solve , beacuse
when we make border for merge cell in LTR mode then change the mode to RTL,
the border will disappear in RTL . But if we are in RTL mode and set the
border for merge cell , we can't see the border but if we back to LTR mode
it will be apper.
I welcome your ideas or suggestions.
Thanking you.

regards,
Sheikha
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx
index 892b0d9..a6e5e0a 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -327,7 +327,7 @@ bool findMergeOrigin( const TableModelRef& xTable, sal_Int32 nMergedX, sal_Int32
     {
         // check if this cell already the origin or not merged at all
         Reference< XMergeableCell > xCell( xTable->getCellByPosition( nMergedX, nMergedY ), 
UNO_QUERY_THROW );
-        if( !xCell.is() || !xCell->isMerged() )
+        if( !xCell.is())
             return true;
 
         bool bCheckVert = true;

Attachment: 3.png
Description: PNG image

Attachment: 2.png
Description: PNG image

Attachment: 1.png
Description: PNG image


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.