svx/source/sidebar/nbdtmg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 820383be6221bf0fc0ed972f2bda786affaf1a74 Author: Maxim Monastirsky <momonas...@gmail.com> Date: Thu Jun 18 16:15:29 2015 +0300 There are only 8 available strings for RID_SVXSTR_SINGLENUM_DESCRIPTIONS, but since 71b35212265bb93b10ca35ab964a36e6b6cc552b, we're allowing here more than 8 items. So don't try to get strings for those items, the same way we restrict that in SvxNumValueSet::SetNumberingSettings. (Although these string are (still) not used anywhere AFAIK.) Change-Id: Iaa538e4aebfc72729646f0befc7bcf8e58d6cbee diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 69384f1..d9ccf68 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -1312,7 +1312,8 @@ void NumberingTypeMgr::Init() pNumEntry->nIndex = i + 1; pNumEntry->nIndexDefault = i; pNumEntry->pNumSetting = pNew; - pNumEntry->sDescription = SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i ); + if ( i < 8 ) + pNumEntry->sDescription = SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i ); pNumberSettingsArr->push_back(std::shared_ptr<NumberSettings_Impl>(pNumEntry)); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits