fix assertion on optional files

This commit is contained in:
Glenn Maynard
2009-08-20 23:17:44 +00:00
parent 4bb6af792d
commit 07bbf5cba8
+2 -1
View File
@@ -772,7 +772,8 @@ RString ThemeManager::GetPath( ElementCategory category, const RString &sMetrics
{
PathInfo pi;
GetPathInfo( pi, category, sMetricsGroup, sElement, bOptional );
ASSERT( !pi.sResolvedPath.empty() );
if(!bOptional)
ASSERT( !pi.sResolvedPath.empty() );
return pi.sResolvedPath;
}