diff options
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r-- | src/FbTk/TextBox.cc | 2 |
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 | ||
370 | void TextBox::adjustStartPos() { | 370 | void 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 | ||