aboutsummaryrefslogtreecommitdiff
path: root/src/Entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entry.cpp')
-rw-r--r--src/Entry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entry.cpp b/src/Entry.cpp
index ae370c5..cc05aa0 100644
--- a/src/Entry.cpp
+++ b/src/Entry.cpp
@@ -60,7 +60,7 @@ namespace QuickMedia {
}
void Entry::set_text(std::string new_text) {
- text.setString(std::move(new_text));
+ text.setString(sf::String::fromUtf8(new_text.data(), new_text.data() + new_text.size()));
}
void Entry::move_caret_to_end() {