mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
WebParser: Fix failure to replace [&Measure] variables in some cases
This commit is contained in:
parent
cf62c509a1
commit
9e730bc7cf
@ -727,14 +727,17 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
|
||||
std::wstring var = L"[";
|
||||
var += url.substr(si + 1, end - si);
|
||||
|
||||
std::wstring result = RmReplaceVariables(rm, var.c_str());
|
||||
const std::wstring result = RmReplaceVariables(rm, var.c_str());
|
||||
if (result != var)
|
||||
{
|
||||
url.replace(start, end - start + 1, result);
|
||||
start += result.length();
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
start = end;
|
||||
}
|
||||
}
|
||||
|
||||
measure->url = url;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user