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

[STR New]

Link: http://www.fltk.org/str.php?L2620
Version: 1.3-current


Attached file "jimmio.patch"...


Link: http://www.fltk.org/str.php?L2620
Version: 1.3-current
Index: src/Fl_Text_Display.cxx
===================================================================
--- src/Fl_Text_Display.cxx     (revision 8638)
+++ src/Fl_Text_Display.cxx     (working copy)
@@ -1744,7 +1744,7 @@
       int w = 0;
       if (prevChar=='\t') {
         // draw a single Tab space
-        int tab = (int)col_to_x(8);
+        int tab = (int)col_to_x(mBuffer->tab_distance());
         int xAbs = (mode==GET_WIDTH) ? startX : 
startX+mHorizOffset-text_area.x;
         w = (((xAbs/tab)+1)*tab) - xAbs;
         if (mode==DRAW_LINE)
@@ -1777,7 +1777,7 @@
   int w = 0;
   if (currChar=='\t') {
     // draw a single Tab space
-    int tab = (int)col_to_x(8);
+    int tab = (int)col_to_x(mBuffer->tab_distance());
     int xAbs = (mode==GET_WIDTH) ? startX : startX+mHorizOffset-text_area.x;
     w = (((xAbs/tab)+1)*tab) - xAbs;
     if (mode==DRAW_LINE)
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to