summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.cpp b/gui.cpp
index f29ee82..2303470 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -128,7 +128,7 @@ void ConsoleWindow::handle_input() {
if(!s.size())
return;
- FormattedListboxTextItem *item = new FormattedListboxTextItem(s, HTF_WORDWRAP_LEFT_ALIGNED);
+ FormattedListboxTextItem *item = new FormattedListboxTextItem(String((utf8*)s.c_str()), HTF_WORDWRAP_LEFT_ALIGNED);
listbox->addItem(item);
listbox->ensureItemIsVisible(item);
}