summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/dlg/BulletAndPositionDlg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
index 659833829517..38c7b7e00094 100644
--- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx
+++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
@@ -469,9 +469,10 @@ void SvxBulletAndPositionDlg::InitControls()
bool bBullRelSize = pActNum->IsFeatureSupported(SvxNumRuleFlags::BULLET_REL_SIZE);
for (sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++)
{
+ aNumFmtArr[i] = &pActNum->GetLevel(i);
+
if (nActNumLvl & nMask)
{
- aNumFmtArr[i] = &pActNum->GetLevel(i);
bShowBullet &= aNumFmtArr[i]->GetNumberingType() == SVX_NUM_CHAR_SPECIAL;
bShowBitmap &= (aNumFmtArr[i]->GetNumberingType() & (~LINK_TOKEN)) == SVX_NUM_BITMAP;
eFirstAdjust = aNumFmtArr[i]->GetNumAdjust();
@@ -508,8 +509,6 @@ void SvxBulletAndPositionDlg::InitControls()
}
nHighestLevel = i;
}
- else
- aNumFmtArr[i] = nullptr;
nMask <<= 1;
}