[Libreoffice-commits] core.git: cui/source
Katarina Behrens
Katarina.Behrens at cib.de
Wed Oct 12 08:45:20 UTC 2016
cui/source/tabpages/tppattern.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 0d93900801224b797741e9a1abf305109fa35665
Author: Katarina Behrens <Katarina.Behrens at 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 <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at 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;
}
More information about the Libreoffice-commits
mailing list