diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-27 23:38:38 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-27 23:57:55 +0100 |
commit | 9c1a1b98776ca2216d82af303394a09f2bac0471 (patch) | |
tree | 3253c131ad236957d03ccae222089220dc9cfe80 /cui/source/tabpages/paragrph.cxx | |
parent | a69ef2d84c3562da5e3bfda34e643c5044b4584a (diff) |
fdo#70861: cui: fix crash in SvxExtParagraphTabPage
SvxExtParagraphTabPage::Reset() must not request a pool default for
SID_ATTR_PARA_PAGENUM because it simply does not exist; the item is
backed by a member of SwPageDesc in Writer.
Change-Id: I9b157f048cd986566f9b01f3677b53d5974b6c8d
Diffstat (limited to 'cui/source/tabpages/paragrph.cxx')
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index f5b2148f299d..09a389475aa0 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -1552,7 +1552,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet* rSet ) _nWhich = GetWhich( SID_ATTR_PARA_PAGENUM ); - if ( rSet->GetItemState(_nWhich) >= SfxItemState::DEFAULT ) + if (rSet->GetItemState(_nWhich) >= SfxItemState::SET) { const sal_uInt16 nPageNum = static_cast<const SfxUInt16Item&>(rSet->Get( _nWhich ) ).GetValue(); |