mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed ratings mysteriously not working on certain locales (e.g. German).
This commit is contained in:
parent
f79121cd72
commit
721b02cfab
|
@ -31,7 +31,11 @@ void RatingComponent::setValue(const std::string& value)
|
|||
|
||||
std::string RatingComponent::getValue() const
|
||||
{
|
||||
return std::to_string((long double)mValue);
|
||||
// do not use std::to_string here as it will use the current locale
|
||||
// and that sometimes encodes decimals as commas
|
||||
std::stringstream ss;
|
||||
ss << mValue;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void RatingComponent::onSizeChanged()
|
||||
|
|
Loading…
Reference in a new issue