The attached patch fixes the bug.

Regards,
Eugene
>From 57fb563cd656d328f49143db358fe78fa8f20a38 Mon Sep 17 00:00:00 2001
From: Eugene Doudine <dudi...@gmail.com>
Date: Sun, 23 Mar 2014 07:37:35 +0200
Subject: [PATCH 2/3] Fixed bug #27 	dtfile space handling bug

---
 cde/programs/dtfile/File.c |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/cde/programs/dtfile/File.c b/cde/programs/dtfile/File.c
index 8cefb26..a7f63a7 100644
--- a/cde/programs/dtfile/File.c
+++ b/cde/programs/dtfile/File.c
@@ -6339,12 +6339,17 @@ EstimateIconSize(
    int label_len;
    int label_width;
 
-   if (file_view_data == NULL)
+   if (file_view_data == NULL) {
       label_len = 1;
-   else if (file_view_data->label == NULL)
-      label_len = strlen(file_view_data->file_data->file_name);
-   else
-      label_len = strlen(file_view_data->label);
+   } else {
+#ifdef MULTIBYTE
+      label_len = DtCharCount(file_view_data->label == NULL ? 
+			file_view_data->file_data->file_name : file_view_data->label);
+#else
+      label_len = strlen(file_view_data->label == NULL ? 
+			file_view_data->file_data->file_name : file_view_data->label);     
+#endif
+   }
 
    if (layout_data->pixmap_position == XmPIXMAP_TOP)
    {
-- 
1.7.9.5

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to