aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextBox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 87ad609..87e18e8 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -369,7 +369,7 @@ void TextBox::adjustEndPos() {
369 369
370void TextBox::adjustStartPos() { 370void TextBox::adjustStartPos() {
371 371
372 int text_width = font().textWidth(text().c_str(), m_end_pos); 372 int text_width = font().textWidth(text(), m_end_pos);
373 if (text_width < static_cast<signed>(width())) 373 if (text_width < static_cast<signed>(width()))
374 return; 374 return;
375 375