i18npool/source/localedata/localedata.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit b1226e1f225de4fa67a0d4f5a6aa4017284c7deb
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Mon Jan 2 10:48:33 2023 -0500
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Tue Jan 3 18:29:41 2023 +0000

    tdf#56258 i18npool: should be a SvxAdjust, not a HoriOrient
    
    Although this is unused AFAICS, lets at least use the correct
    enum, because these two do not match up.
    HoriOrient::LEFT = 3, while SvxAdjust::Left = 0 (3 is Center)
    
    Change-Id: I1cd8cce6d4e223ac272d8d4ba5e22c52c7657499
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144977
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/i18npool/source/localedata/localedata.cxx 
b/i18npool/source/localedata/localedata.cxx
index 4291df4809e9..933c9224a1eb 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -23,10 +23,10 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
-#include <com/sun/star/text/HoriOrientation.hpp>
 #include <comphelper/sequence.hxx>
 #include <cppuhelper/implbase.hxx>
 #include <cppuhelper/supportsservice.hxx>
+#include <editeng/svxenum.hxx>
 #include <localedata.hxx>
 #include <i18nlangtag/mslangid.hxx>
 #include <i18nlangtag/languagetag.hxx>
@@ -1487,7 +1487,6 @@ LocaleDataImpl::getAllInstalledLocaleNames()
 
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::text;
 
 OutlineNumbering::OutlineNumbering(std::unique_ptr<const 
OutlineNumberingLevel_Impl[]> pOutlnLevels, int nLevels) :
     m_pOutlineLevels(std::move(pOutlnLevels)),
@@ -1529,7 +1528,7 @@ Any OutlineNumbering::getByIndex( sal_Int32 nIndex )
     pValues[8].Name = "FirstLineOffset";
     pValues[8].Value <<= pTemp->nFirstLineOffset;
     pValues[9].Name = "Adjust";
-    pValues[9].Value <<= sal_Int16(HoriOrientation::LEFT);
+    pValues[9].Value <<= sal_Int16(SvxAdjust::Left);
     pValues[10].Name = "Transliteration";
     pValues[10].Value <<= pTemp->sTransliteration;
     pValues[11].Name = "NatNum";

Reply via email to