Got rid of the "Not a meter or measure" error.

The handling of the MeterStyle is now done in the CConfigParser.
This commit is contained in:
Kimmo Pekkola
2009-09-04 17:40:02 +00:00
parent 4274397806
commit 8eccc8ddec
5 changed files with 18 additions and 8 deletions

View File

@ -1563,12 +1563,8 @@ void CMeterWindow::ReadSkin()
{
MessageBox(m_Window, error.GetString().c_str(), APPNAME, MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}
else
{
// It's something else
throw CError(std::wstring(L"Section [") + pos + L"] is not a meter or a measure!", __LINE__, __FILE__);
}
}
// If it's not a meter or measure it will be ignored
}
pos = pos + wcslen(pos) + 1;
}