summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/fldui/flddok.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 2e7c1c67dbc2..4e65a7c3fb26 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -479,6 +479,19 @@ sal_Int32 SwFieldDokPage::FillFormatLB(SwFieldTypesEnum nTypeId)
{
m_xFormatLB->select_id(OUString::number(GetCurField()->GetFormat() & ~AF_FIXED));
}
+ else
+ {
+ // Select default selected value for "Insert" dialog
+ switch (nTypeId)
+ {
+ case SwFieldTypesEnum::PageNumber:
+ case SwFieldTypesEnum::DocumentStatistics:
+ m_xFormatLB->select_text(SwResId(FMT_NUM_PAGEDESC));
+ break;
+ default:
+ m_xFormatLB->select(0);
+ }
+ }
FormatHdl(*m_xFormatLB);