DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2211
Version: 2.0-current





Link: http://www.fltk.org/str.php?L2211
Version: 2.0-current
diff -Naur fltk-2.0.x-r6786-orig/src/x11/Font_xlfd.cxx 
fltk-2.0.x-r6786/src/x11/Font_xlfd.cxx
--- fltk-2.0.x-r6786-orig/src/x11/Font_xlfd.cxx 2007-10-17 14:46:35.000000000 
-0500
+++ fltk-2.0.x-r6786/src/x11/Font_xlfd.cxx      2009-09-03 11:33:16.000000000 
-0500
@@ -536,10 +536,12 @@
   unsigned size = unsigned(psize);
 
   // See if the current font is correct:
-  if (font == current_font_ && psize == current_size_ &&
+  if(f && f->encoding && encoding_) {  
+    if (font == current_font_ && psize == current_size_ &&
       (f->encoding==encoding_ ||
           (!encoding_ || !strcmp(f->encoding, encoding_))))
-    return;
+      return;
+  }
   current_font_ = font; current_size_ = psize;
 
   // search the FontSize we have generated already:
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to