diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-27 23:38:38 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-28 00:00:38 +0100 |
commit | f89fa7ab44b05decebc9280696948f7df77414c5 (patch) | |
tree | 85f6b0f93e11ec8a66790fe6dda717b630f33aa7 /cui | |
parent | c083c5a3b358f7d2ec4807ced5e96530d461fe7d (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
(cherry picked from commit 9c1a1b98776ca2216d82af303394a09f2bac0471)
Diffstat (limited to 'cui')
-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(); |