diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-01 17:28:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-01 22:30:10 +0100 |
commit | 4a0d34fc4ec875d14d09156f7b4b3a51fb2f5e30 (patch) | |
tree | 8592fd2bbdace94df78b58828efd49eb8e7f89ed /cui/source | |
parent | 98bdce2ce881fc8795a3de5068c56e5ed42475f9 (diff) |
weld PageStylesPanel
Change-Id: I8e6842a342b242eeaa6d7a27e268dbe5691a9703
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86081
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/tabpages/page.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index c2592f0d944b..8cecd26a51c5 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -370,15 +370,7 @@ void SvxPageDescPage::Reset( const SfxItemSet* rSet ) LayoutHdl_Impl( *m_xLayoutBox ); //adjust numeration type of the page style - //Get the Position of the saved NumType - for (int i=0; i < m_xNumberFormatBox->get_count(); ++i) - { - if (eNumType == m_xNumberFormatBox->get_id(i).toInt32()) - { - m_xNumberFormatBox->set_active(i); - break; - } - } + m_xNumberFormatBox->set_active_id(eNumType); m_xPaperTrayBox->clear(); sal_uInt8 nPaperBin = PAPERBIN_PRINTER_SETTINGS; @@ -689,10 +681,9 @@ bool SvxPageDescPage::FillItemSet( SfxItemSet* rSet ) } //Get the NumType value - nPos = m_xNumberFormatBox->get_active(); - SvxNumType nEntryData = static_cast<SvxNumType>(m_xNumberFormatBox->get_id(nPos).toInt32()); if (m_xNumberFormatBox->get_value_changed_from_saved()) { + SvxNumType nEntryData = m_xNumberFormatBox->get_active_id(); aPage.SetNumType( nEntryData ); bMod = true; } |