summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-10-12 10:54:35 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-10-12 14:29:23 +0000
commit2ee2757f152eadd880f222553daf253d98d31efa (patch)
tree02e54482178ae9b0d874edf83728aa25bb0ba645 /cui
parent8215167bac4f34a2f1432ab247c8984d8f448372 (diff)
Avoid one more crash on switching to pattern tab
this one happens when selecting Format > Area with no shape selection or in Draw's page properties dialog Change-Id: I20c94d4ac0c0ad20a4ac3f28275d1ca7f9ccdeb9 Reviewed-on: https://gerrit.libreoffice.org/29726 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tparea.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index bfd5a4bd26ce..0724505ce38a 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -353,6 +353,7 @@ void SvxAreaTabPage::PageCreated(const SfxAllItemSet& aSet)
const SvxGradientListItem* pGradientListItem = aSet.GetItem<SvxGradientListItem>(SID_GRADIENT_LIST, false);
const SvxHatchListItem* pHatchingListItem = aSet.GetItem<SvxHatchListItem>(SID_HATCH_LIST, false);
const SvxBitmapListItem* pBitmapListItem = aSet.GetItem<SvxBitmapListItem>(SID_BITMAP_LIST, false);
+ const SvxPatternListItem* pPatternListItem = aSet.GetItem<SvxPatternListItem>(SID_PATTERN_LIST, false);
if (pColorListItem)
SetColorList(pColorListItem->GetColorList());
@@ -362,6 +363,8 @@ void SvxAreaTabPage::PageCreated(const SfxAllItemSet& aSet)
SetHatchingList(pHatchingListItem->GetHatchList());
if (pBitmapListItem)
SetBitmapList(pBitmapListItem->GetBitmapList());
+ if (pPatternListItem)
+ SetPatternList(pPatternListItem->GetPatternList());
}
void SvxAreaTabPage::PointChanged( vcl::Window* , RectPoint )