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

@ -212,6 +212,10 @@ void CMeter::ReadConfig(const WCHAR* section)
{
CConfigParser& parser = m_MeterWindow->GetParser();
// The MeterStyle defines a template where the values are read if the meter doesn't have it itself
const std::wstring& style = parser.ReadString(section, L"MeterStyle", L"");
parser.SetStyleTemplate(style);
const std::wstring& x = parser.ReadString(section, L"X", L"0");
if (x.size() > 0)
{