diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-06 20:39:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-07 08:27:37 +0100 |
commit | 6d812e114f1fac014da82955a73b44212b2c6022 (patch) | |
tree | 4134b02e30ed08d078f78cd40a2ea168442b4f5e /sw | |
parent | 318394abef910649d8ef4db39a0f4c469c03d3cf (diff) |
cosmetic, substitute text::HoriOrientation::NONE for 0
Change-Id: I793597b65a8bacac2cab67ece70b42478c793aad
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unosett.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx index 7fc5d1eaaa20..40c7e3991e83 100644 --- a/sw/source/core/unocore/unosett.cxx +++ b/sw/source/core/unocore/unosett.cxx @@ -240,7 +240,7 @@ static SwPageDesc* lcl_GetPageDesc(SwDoc* pDoc, const uno::Any& aValue) // Numbering const unsigned short aSvxToUnoAdjust[] = { - text::HoriOrientation::LEFT, //3 + text::HoriOrientation::LEFT, //3 text::HoriOrientation::RIGHT, //1 USHRT_MAX, text::HoriOrientation::CENTER, //2 @@ -1677,9 +1677,9 @@ void SwXNumberingRules::SetPropertiesToNumFormat( { sal_Int16 nValue = text::HoriOrientation::NONE; pProp->Value >>= nValue; - if(nValue > 0 && + if (nValue > text::HoriOrientation::NONE && nValue <= text::HoriOrientation::LEFT && - USHRT_MAX != aUnoToSvxAdjust[nValue]) + USHRT_MAX != aUnoToSvxAdjust[nValue]) { aFormat.SetNumAdjust((SvxAdjust)aUnoToSvxAdjust[nValue]); } |