diff options
author | Gokul <gswaminathan@kacst.edu.sa> | 2013-02-20 14:54:44 +0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-08 13:22:13 +0000 |
commit | 909d745baf9a5d071892d8c04874ff279a9a477e (patch) | |
tree | e5087e0ce278df79dc586ed4941292cb74a7f105 | |
parent | 4bf95c4c31dd871065d4042028a4b3ae476dab70 (diff) |
Fix for fdo#58919 now the cursor/alignment is Right for RTL Table
When RTL is clicked why to check if it is Left, The problem might arise
when svxAdjust is Center, So its better to check if it is Right instead
of checking only Left, same for Left also.
Change-Id: Iddd808972b724e9a2eebc070bdff793632342a21
Reviewed-on: https://gerrit.libreoffice.org/2290
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | sd/source/ui/view/drtxtob1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 4163ff1dcd02..7d93cb2b5b4d 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -526,13 +526,13 @@ void TextObjectBar::Execute( SfxRequest &rReq ) if( bLeftToRight ) { aNewAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_LEFT_TOP, EE_PARA_WRITINGDIR ) ); - if( nAdjust == SVX_ADJUST_RIGHT ) + if( nAdjust != SVX_ADJUST_LEFT ) aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) ); } else { aNewAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_RIGHT_TOP, EE_PARA_WRITINGDIR ) ); - if( nAdjust == SVX_ADJUST_LEFT ) + if( nAdjust != SVX_ADJUST_RIGHT ) aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) ); } |