sc/source/ui/view/output2.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 045e037b7acde9d8e63fbb977c28b167e8815278
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Sat Nov 2 20:30:14 2013 +0100

    no default LTR mode does not mean RTL, fdo#68097
    
    Change-Id: Ice4957077e7eda5f7bb93042d6e2ba745935ef8b

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 63e0fad..cf0a829 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1690,8 +1690,13 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
                     {
                         const SfxPoolItem* pItem =  mpDoc->GetAttr( nCellX, 
nCellY, nTab, ATTR_WRITINGDIR );
                         const SvxFrameDirectionItem* pCurrentWritingMode = 
(const SvxFrameDirectionItem*) pItem;
-                        if (pCurrentWritingMode->GetValue() == 
FRMDIR_HORI_LEFT_TOP)
+                        sal_uInt16 aDirection = 
pCurrentWritingMode->GetValue();
+                        if ( aDirection == FRMDIR_HORI_LEFT_TOP || aDirection 
== FRMDIR_VERT_TOP_LEFT )
                             eOutHorJust = SVX_HOR_JUSTIFY_LEFT;
+                        else if ( aDirection == FRMDIR_ENVIRONMENT )
+                        {
+                            eOutHorJust = mpDoc->IsLayoutRTL(nTab) ? 
SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT;
+                        }
                         else
                             eOutHorJust = SVX_HOR_JUSTIFY_RIGHT;
                     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to