mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fix for r510 (Fixed the issue that '#', 'Q', 'O' and 'T' are replaced to '"'.)
This commit is contained in:
parent
02658b1ecc
commit
67e5d4142d
@ -231,8 +231,11 @@ bool CMeasure::ParseSubstitute(std::wstring buffer)
|
|||||||
if (sep != L":") return false;
|
if (sep != L":") return false;
|
||||||
word2 = ExtractWord(buffer);
|
word2 = ExtractWord(buffer);
|
||||||
|
|
||||||
m_Substitute.push_back(word1);
|
if (word1 != word2)
|
||||||
m_Substitute.push_back(word2);
|
{
|
||||||
|
m_Substitute.push_back(word1);
|
||||||
|
m_Substitute.push_back(word2);
|
||||||
|
}
|
||||||
|
|
||||||
sep = ExtractWord(buffer);
|
sep = ExtractWord(buffer);
|
||||||
if (!sep.empty() && sep != L",") return false;
|
if (!sep.empty() && sep != L",") return false;
|
||||||
@ -296,7 +299,7 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((pos = ret.find_first_of(L"#QUOT#", pos)) != std::wstring::npos) ret.replace(pos, 6, L"\"");
|
while ((pos = ret.find(L"#QUOT#", pos)) != std::wstring::npos) ret.replace(pos, 6, L"\"");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user