From f89fa7ab44b05decebc9280696948f7df77414c5 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 27 Nov 2014 23:38:38 +0100 Subject: 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) --- cui/source/tabpages/paragrph.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') 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(rSet->Get( _nWhich ) ).GetValue(); -- cgit v1.2.3