- Fixed a problem that !RainmeterQuit isn't executed when no meter window is running.

- Fixed a problem that StyleTemplate affects to Meters which have no relation.

- Added a workaround to avoid the "IniFileMapping" function when reading skins.

- Some small code cosmetics.
This commit is contained in:
spx
2010-04-02 01:35:53 +00:00
parent a6f2f01036
commit 415c905d0a
9 changed files with 157 additions and 44 deletions

View File

@@ -148,9 +148,9 @@ void CMeasureCalc::RandomFormulaReplace()
//To implement random numbers the word "Random" in the string
//formula is being replaced by the random number value
m_Formula = m_FormulaHolder;
int loc = m_Formula.find(L"Random");
std::wstring::size_type loc = m_Formula.find(L"Random");
while(loc > -1)
while(loc != std::wstring::npos)
{
int range = (m_HighBound - m_LowBound);
srand((unsigned) rand());