include/svx/nbdtmg.hxx | 6 +++--- svx/source/sidebar/nbdtmg.cxx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-)
New commits: commit 0de962a42ef0a5d95068263294e99179531d7e85 Author: Xisco Fauli <[email protected]> AuthorDate: Thu Jan 22 12:41:25 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Jan 22 15:57:13 2026 +0100 svx: fix typo Change-Id: Ib96dffaedf182fbeb0f605c14ddcd19c47507ff9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197805 Reviewed-by: Xisco Fauli <[email protected]> Tested-by: Jenkins diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx index 45b0f99d9e82..ca199e2477cd 100644 --- a/include/svx/nbdtmg.hxx +++ b/include/svx/nbdtmg.hxx @@ -29,7 +29,7 @@ class SfxItemSet; namespace svx::sidebar { #define DEFAULT_BULLET_TYPES 8 -#define DEFAULT_NUM_VALUSET_COUNT 8 +#define DEFAULT_NUM_VALUESET_COUNT 8 #define DEFAULT_NUMBERING_CACHE_FORMAT_VERSION 0x10 enum class NBOType @@ -201,8 +201,8 @@ class OutlineTypeMgr final : public NBOTypeMgrBase virtual bool IsCustomized(sal_uInt16 nIndex) override; static OutlineTypeMgr& GetInstance(); private: - OutlineSettings_Impl* pOutlineSettingsArrs[DEFAULT_NUM_VALUSET_COUNT]; - OutlineSettings_Impl* pDefaultOutlineSettingsArrs[DEFAULT_NUM_VALUSET_COUNT]; + OutlineSettings_Impl* pOutlineSettingsArrs[DEFAULT_NUM_VALUESET_COUNT]; + OutlineSettings_Impl* pDefaultOutlineSettingsArrs[DEFAULT_NUM_VALUESET_COUNT]; }; } #endif diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 0c9d9c26b015..c7fc6b1748c7 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -179,7 +179,7 @@ void NBOTypeMgrBase::ImplLoad(std::u16string_view filename) if (nVersion==DEFAULT_NUMBERING_CACHE_FORMAT_VERSION) //first version { xIStm->ReadInt32( nNumIndex ); - while (nNumIndex>=0 && nNumIndex<DEFAULT_NUM_VALUSET_COUNT) { + while (nNumIndex>=0 && nNumIndex<DEFAULT_NUM_VALUESET_COUNT) { SvxNumRule aNum(*xIStm); //bullet color in font properties is not stored correctly. Need set transparency bits manually for(sal_uInt16 i = 0; i < aNum.GetLevelCount(); i++) @@ -215,7 +215,7 @@ void NBOTypeMgrBase::ImplStore(std::u16string_view filename) sal_Int32 nNumIndex; nVersion = DEFAULT_NUMBERING_CACHE_FORMAT_VERSION; xOStm->WriteUInt32( nVersion ); - for(sal_Int32 nItem = 0; nItem < DEFAULT_NUM_VALUSET_COUNT; nItem++ ) { + for(sal_Int32 nItem = 0; nItem < DEFAULT_NUM_VALUESET_COUNT; nItem++ ) { if (IsCustomized(nItem)) { SvxNumRule aDefNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::CONTINUOUS | SvxNumRuleFlags::BULLET_COLOR, 10, false, @@ -571,7 +571,7 @@ bool NumberingTypeMgr::IsCustomized(sal_uInt16 nIndex) OutlineTypeMgr::OutlineTypeMgr() { Init(); - for(sal_Int32 nItem = 0; nItem < DEFAULT_NUM_VALUSET_COUNT; nItem++ ) + for(sal_Int32 nItem = 0; nItem < DEFAULT_NUM_VALUESET_COUNT; nItem++ ) { pDefaultOutlineSettingsArrs[nItem] = pOutlineSettingsArrs[nItem]; } @@ -601,7 +601,7 @@ void OutlineTypeMgr::Init() 10, false, SvxNumRuleType::NUMBERING, SvxNumberFormat::LABEL_ALIGNMENT); - auto nSize = std::min<sal_Int32>(aOutlineAccess.getLength(), DEFAULT_NUM_VALUSET_COUNT); + auto nSize = std::min<sal_Int32>(aOutlineAccess.getLength(), DEFAULT_NUM_VALUESET_COUNT); for(sal_Int32 nItem = 0; nItem < nSize; nItem++ ) { pOutlineSettingsArrs[ nItem ] = new OutlineSettings_Impl; @@ -780,8 +780,8 @@ void OutlineTypeMgr::ReplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uIn void OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 /*mLevel*/, bool isDefault, bool isResetSize) { - DBG_ASSERT(DEFAULT_NUM_VALUSET_COUNT > nIndex, "wrong index"); - if(DEFAULT_NUM_VALUSET_COUNT <= nIndex) + DBG_ASSERT(DEFAULT_NUM_VALUESET_COUNT > nIndex, "wrong index"); + if(DEFAULT_NUM_VALUESET_COUNT <= nIndex) return; const FontList* pList = nullptr;
