cui/source/tabpages/tppattern.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 0d93900801224b797741e9a1abf305109fa35665 Author: Katarina Behrens <katarina.behr...@cib.de> Date: Sat Oct 8 00:04:19 2016 +0200 Avoid crash on switching to pattern tab Change-Id: I8edeb1a92c20c88160109a904cdcec355a5ef998 Reviewed-on: https://gerrit.libreoffice.org/29599 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Katarina Behrens <katarina.behr...@cib.de> diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx index 7c73b3a..c156d24 100644 --- a/cui/source/tabpages/tppattern.cxx +++ b/cui/source/tabpages/tppattern.cxx @@ -73,7 +73,7 @@ public: { const Bitmap aRetval(createHistorical8x8FromArray(pBmpArray, aPixelColor, aBackgroundColor)); - return BitmapEx(aRetval); + return (pBmpArray != nullptr) ? BitmapEx(aRetval) : BitmapEx(); } void SetBmpArray( const sal_uInt16* pPixel ) { pBmpArray = pPixel; } @@ -201,7 +201,6 @@ void SvxPatternTabPage::ActivatePage( const SfxItemSet& rSet ) m_pLbBackgroundColor->SelectEntryPos( 0 ); else m_pLbBackgroundColor->SelectEntryPos( nPos ); - ChangeColor_Impl(); } // determining (possibly cutting) the name and @@ -226,8 +225,6 @@ void SvxPatternTabPage::ActivatePage( const SfxItemSet& rSet ) sal_uInt16 nId = m_pPatternLB->GetItemId( static_cast<size_t>( *m_pPos ) ); m_pPatternLB->SelectItem( nId ); } - // colors could have been deleted - ChangePatternHdl_Impl( m_pPatternLB ); *m_pPos = LISTBOX_ENTRY_NOTFOUND; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits