From 2ee2757f152eadd880f222553daf253d98d31efa Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Wed, 12 Oct 2016 10:54:35 +0200 Subject: 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 Tested-by: Katarina Behrens --- cui/source/tabpages/tparea.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cui') 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(SID_GRADIENT_LIST, false); const SvxHatchListItem* pHatchingListItem = aSet.GetItem(SID_HATCH_LIST, false); const SvxBitmapListItem* pBitmapListItem = aSet.GetItem(SID_BITMAP_LIST, false); + const SvxPatternListItem* pPatternListItem = aSet.GetItem(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 ) -- cgit