From f68ab23323bd642c352d655eb5c31f7127eed834 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 25 Oct 2004 19:41:14 +0000 Subject: [PATCH] no wstring::clear() --- panda/src/pgui/pgEntry.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/pgui/pgEntry.cxx b/panda/src/pgui/pgEntry.cxx index a406a85de7..e828edc8f7 100644 --- a/panda/src/pgui/pgEntry.cxx +++ b/panda/src/pgui/pgEntry.cxx @@ -189,7 +189,7 @@ press(const MouseWatcherParameter ¶m, bool background) { (background && get_background_focus())) { // Keyboard button. if (!_candidate_wtext.empty()) { - _candidate_wtext.clear(); + _candidate_wtext = wstring(); _text_geom_stale = true; } @@ -273,7 +273,7 @@ keystroke(const MouseWatcherParameter ¶m, bool background) { // A normal visible character. Add a new character to the // text entry, if there's room. if (!_candidate_wtext.empty()) { - _candidate_wtext.clear(); + _candidate_wtext = wstring(); _text_geom_stale = true; } wstring new_char(1, (wchar_t)keycode);