Kaydet (Commit) d712a4f8 authored tarafından Caolán McNamara's avatar Caolán McNamara

continue if theme cannot be determined

Change-Id: Ia5b6e77b66357dd74c5163472e07a5c31166e8d2
üst 06bf9330
......@@ -96,9 +96,20 @@ BitmapEx::BitmapEx( const OUString& rIconName )
void BitmapEx::loadFromIconTheme( const OUString& rIconName )
{
OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme();
bool bSuccess;
OUString aIconTheme;
if (!ImageTree::get().loadImage(rIconName, aIconTheme, *this, true))
try
{
aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme();
bSuccess = ImageTree::get().loadImage(rIconName, aIconTheme, *this, true);
}
catch (...)
{
bSuccess = false;
}
if (!bSuccess)
{
#ifdef DBG_UTIL
OStringBuffer aErrorStr(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment