diff options
-rw-r--r-- | cui/source/options/personalization.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 3ff422289f37..d05775e93a53 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -252,6 +252,8 @@ void SelectPersonaDialog::AddPersonaSetting( OUString const & rPersonaSetting ) void SelectPersonaDialog::ClearSearchResults() { + // for VCL to be able to destroy bitmaps + SolarMutexGuard aGuard; m_vPersonaSettings.clear(); m_aSelectedPersona.clear(); for(VclPtr<PushButton> & nIndex : m_vResultList) @@ -776,14 +778,14 @@ void SearchAndParseThread::execute() continue; } INetURLObject aURLObj( sPreviewFile ); + // for VCL to be able to create bitmaps / do visual changes in the thread + SolarMutexGuard aGuard; aFilter.ImportGraphic( aGraphic, aURLObj ); Bitmap aBmp = aGraphic.GetBitmap(); if( !m_bExecute ) return; - // for VCL to be able to do visual changes in the thread - SolarMutexGuard aGuard; m_pPersonaDialog->SetImages( Image( aBmp ), nIndex++ ); m_pPersonaDialog->setOptimalLayoutSize(); m_pPersonaDialog->AddPersonaSetting( aPersonaSetting ); |