Small change to two RatingComponent theme log warnings

This commit is contained in:
Leon Styhre 2023-08-20 21:01:23 +02:00
parent ad68629656
commit de905babf0

View file

@ -195,7 +195,7 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
if (elem->has("size")) { if (elem->has("size")) {
glm::vec2 ratingSize {elem->get<glm::vec2>("size")}; glm::vec2 ratingSize {elem->get<glm::vec2>("size")};
if (ratingSize == glm::vec2 {0.0f, 0.0f}) { if (ratingSize == glm::vec2 {0.0f, 0.0f}) {
LOG(LogWarning) << "RatingComponent: Invalid theme configuration, property <size> " LOG(LogWarning) << "RatingComponent: Invalid theme configuration, property \"size\" "
"for element \"" "for element \""
<< element.substr(7) << "\" is set to zero"; << element.substr(7) << "\" is set to zero";
ratingSize.y = 0.06f; ratingSize.y = 0.06f;
@ -241,7 +241,7 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
linearInterpolation = false; linearInterpolation = false;
LOG(LogWarning) LOG(LogWarning)
<< "RatingComponent: Invalid theme configuration, property <interpolation> " << "RatingComponent: Invalid theme configuration, property \"interpolation\" "
"for element \"" "for element \""
<< element.substr(7) << "\" defined as \"" << interpolation << "\""; << element.substr(7) << "\" defined as \"" << interpolation << "\"";
} }