From ffa4c7f3414944869016497a4f560c24b9d8b3e9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 30 Jun 2002 09:53:52 +0000 Subject: sync with bb. mostly cleanups in Window.cc --- src/Util.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Util.cc') diff --git a/src/Util.cc b/src/Util.cc index 9dadb3e1..51477423 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -188,8 +188,9 @@ string textPropertyToString(Display *display, XTextProperty& text_prop) { string ret; if (text_prop.value && text_prop.nitems > 0) { - ret = (char *) text_prop.value; - if (text_prop.encoding != XA_STRING) { + if (text_prop.encoding == XA_STRING) { + ret = (char *) text_prop.value; + } else { text_prop.nitems = strlen((char *) text_prop.value); char **list; -- cgit v1.2.3