absolute coordinate check: constants with no offset are ok

This commit is contained in:
Chris Danford
2004-11-06 06:54:04 +00:00
parent b50eb9399d
commit 0f7a5c873d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -624,7 +624,7 @@ float ThemeManager::GetMetricF( const CString &sClassName, const CString &sValue
#if defined(DEBUG)
if( sValueName.Right(1) == "X" || sValueName.Right(1) == "Y" ) // an absolute X or Y position
{
if( sValue.Find('-') == -1 && sValue.Find('+') == -1 )
if( isdigit(sValue[0]) && sValue.Find('-') == -1 && sValue.Find('+') == -1 )
{
LOG->Warn( "Absolute position metric '%s'-'%s' should contain a SCREEN_* constant", sClassName.c_str(), sValueName.c_str() );
}