fix assertion on optional files

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