[Libreoffice-commits] core.git: sd/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Tue Mar 14 06:32:00 UTC 2017


 sd/source/ui/view/drviews3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cf21b6b19d918cdf3b6dc1c07c0b91e604370ede
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Mon Mar 13 17:28:51 2017 +0100

    sd: fix comparison between different enum types
    
    found while changing base of SvxFrameDirectionItem to SfxEnumItem
    
    > warning: comparison between ‘enum SvxFrameDirection’
    > and ‘enum com::sun::star::text::WritingMode’ [-Wenum-compare]
    
    Change-Id: Ide7c8193fd700f2503b05322f0d4d38f465b12c5
    Reviewed-on: https://gerrit.libreoffice.org/35148
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index 99220ac..c417a1e 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -966,7 +966,7 @@ void  DrawViewShell::GetRulerState(SfxItemSet& rSet)
                 if( aEditAttr.GetItemState( EE_PARA_WRITINGDIR ) >= SfxItemState::DEFAULT )
                 {
                     const SvxFrameDirectionItem& rItem = static_cast<const SvxFrameDirectionItem&>( aEditAttr.Get( EE_PARA_WRITINGDIR ) );
-                    rSet.Put(SfxBoolItem(SID_RULER_TEXT_RIGHT_TO_LEFT, rItem.GetValue() == css::text::WritingMode_RL_TB));
+                    rSet.Put(SfxBoolItem(SID_RULER_TEXT_RIGHT_TO_LEFT, rItem.GetValue() == FRMDIR_HORI_RIGHT_TOP));
                 }
             }
         }


More information about the Libreoffice-commits mailing list