fix fallbacks in the default theme not being searched for file elements
when using a derived theme
This commit is contained in:
@@ -211,10 +211,11 @@ CString ThemeManager::GetPathToAndFallback( CString sThemeName, ElementCategory
|
|||||||
return sRet;
|
return sRet;
|
||||||
|
|
||||||
// search fallback name (if any)
|
// search fallback name (if any)
|
||||||
|
// XXX: should this check fallbacks recursively?
|
||||||
CString sFallback;
|
CString sFallback;
|
||||||
if( m_pIniMetrics->GetValue(sClassName,"Fallback",sFallback) )
|
if( m_pIniMetrics->GetValue(sClassName,"Fallback",sFallback) )
|
||||||
{
|
{
|
||||||
sRet = GetPathToAndFallback( m_sCurThemeName, category, sFallback, sElement );
|
sRet = GetPathToAndFallback( sThemeName, category, sFallback, sElement );
|
||||||
if( !sRet.empty() )
|
if( !sRet.empty() )
|
||||||
return sRet;
|
return sRet;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user