Author: AlbrechtS
Date: 2011-01-07 05:28:42 -0800 (Fri, 07 Jan 2011)
New Revision: 8211
Log:
STR #2505: Fixed double string conversion.


Modified:
   branches/branch-1.3/src/fl_font_xft.cxx

Modified: branches/branch-1.3/src/fl_font_xft.cxx
===================================================================
--- branches/branch-1.3/src/fl_font_xft.cxx     2011-01-07 12:39:51 UTC (rev 
8210)
+++ branches/branch-1.3/src/fl_font_xft.cxx     2011-01-07 13:28:42 UTC (rev 
8211)
@@ -374,8 +374,10 @@
     lbuf = newn + 100;
     if (buffer) free(buffer);
     buffer = (wchar_t*)malloc(lbuf * sizeof(wchar_t));
-    }
-  n = fl_utf8towc(str, n, (wchar_t*)buffer, lbuf);
+    n = fl_utf8towc(str, n, (wchar_t*)buffer, lbuf);
+  } else {
+    n = newn;
+  }
   return buffer;
 }
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to