diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 5224965fb..0231faae1 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -229,7 +229,7 @@ void TextComponent::onTextChanged() } Vector2f size = f->sizeText(text); - if (!isMultiline && mSize.x() && text.size() && (size.x() > mSize.x() || addAbbrev)) { + if (!isMultiline && mSize.x() > 0.0f && text.size() && (size.x() > mSize.x() || addAbbrev)) { // Abbreviate text. const std::string abbrev = "..."; Vector2f abbrevSize = f->sizeText(abbrev);