summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-10-18 20:40:36 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-10-18 20:40:36 +0000
commitb2f9a532e7243aa36052abadcd930edb4924911c (patch)
tree146caa5cc015fce83fe9a0df5eec904080d0fa11 /src
parentca005c406787c5ccf5c0cf0bc5275ea7a6ed1ba7 (diff)
Shortcuts were incorrectly underlined in multi-line labels (STR
#566) Remove Winline from GCC options. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_draw.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx
index 84b97cf17..ef44d6420 100644
--- a/src/fl_draw.cxx
+++ b/src/fl_draw.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_draw.cxx,v 1.6.2.4.2.16 2004/04/11 04:38:59 easysw Exp $"
+// "$Id: fl_draw.cxx,v 1.6.2.4.2.17 2004/10/18 20:40:36 easysw Exp $"
//
// Label drawing code for the Fast Light Tool Kit (FLTK).
//
@@ -208,7 +208,7 @@ void fl_draw(
callthis(buf,buflen,xpos,ypos-desc);
- if (underline_at)
+ if (underline_at && underline_at >= buf && underline_at < (buf + buflen))
callthis("_",1,xpos+int(fl_width(buf,underline_at-buf)),ypos-desc);
if (!*e || (*e == '@' && e[1] != '@')) break;
@@ -325,5 +325,5 @@ void fl_measure(const char* str, int& w, int& h, int draw_symbols) {
}
//
-// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.16 2004/04/11 04:38:59 easysw Exp $".
+// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.17 2004/10/18 20:40:36 easysw Exp $".
//