Fixed a GCC compiler warning.

This commit is contained in:
Leon Styhre 2021-12-02 17:40:45 +01:00
parent a794c717b6
commit f5ff480fc4

View file

@ -170,7 +170,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans)
if (mTextCache) {
std::shared_ptr<Font> font = getFont();
float referenceSize;
float referenceSize{0.0f};
if (mAlignRight)
referenceSize = std::round(mParent->getSize().x * 0.1045f);