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

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


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

New commits:
commit 0960ea6de3ecb0b64deea308a3362a08628adc60
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Mon Mar 13 11:54:05 2017 +0100

    sc: change nDirection type to enum
    
    Change-Id: Icaa71f99de7c97d1a9601ad00d2a6b0dbe8dae14
    Reviewed-on: https://gerrit.libreoffice.org/35130
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 40206ad..b45756b 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1420,7 +1420,7 @@ static SvxCellHorJustify getAlignmentFromContext( SvxCellHorJustify eInHorJust,
     if (bUseWritingDirection ||
             eInHorJust == SvxCellHorJustify::Block || eInHorJust == SvxCellHorJustify::Repeat)
     {
-        sal_uInt16 nDirection = lcl_GetValue<SvxFrameDirectionItem, sal_uInt16>( rPattern, ATTR_WRITINGDIR, pCondSet);
+        SvxFrameDirection nDirection = lcl_GetValue<SvxFrameDirectionItem, SvxFrameDirection>(rPattern, ATTR_WRITINGDIR, pCondSet);
         if (nDirection == FRMDIR_HORI_LEFT_TOP || nDirection == FRMDIR_VERT_TOP_LEFT)
             eHorJustContext = SvxCellHorJustify::Left;
         else if (nDirection == FRMDIR_ENVIRONMENT)


More information about the Libreoffice-commits mailing list