fix fallbacks in the default theme not being searched for file elements

when using a derived theme
This commit is contained in:
Glenn Maynard
2004-02-15 21:20:53 +00:00
parent f6e0803b77
commit 5adcced8b2
+2 -1
View File
@@ -211,10 +211,11 @@ CString ThemeManager::GetPathToAndFallback( CString sThemeName, ElementCategory
return sRet;
// search fallback name (if any)
// XXX: should this check fallbacks recursively?
CString sFallback;
if( m_pIniMetrics->GetValue(sClassName,"Fallback",sFallback) )
{
sRet = GetPathToAndFallback( m_sCurThemeName, category, sFallback, sElement );
sRet = GetPathToAndFallback( sThemeName, category, sFallback, sElement );
if( !sRet.empty() )
return sRet;
}