summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-05-30 16:08:46 +0000
committerManolo Gouy <Manolo>2011-05-30 16:08:46 +0000
commit2e397fcd81efba23b45705df2cd6c9803aaafdcf (patch)
tree9aac2a539621b94f6e9283892c60599fad30a250
parent8c6864adead2de9f80cb377a568ecca8a8720093 (diff)
Fix STR #2649: fl_measure() did not handle well double @@ at line start.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/fl_draw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx
index 83c9b7428..aab974881 100644
--- a/src/fl_draw.cxx
+++ b/src/fl_draw.cxx
@@ -441,7 +441,7 @@ void fl_measure(const char* str, int& w, int& h, int draw_symbols) {
w != 0, draw_symbols);
if ((int)ceil(width) > W) W = (int)ceil(width);
lines++;
- if (!*e || (*e == '@' && draw_symbols)) break;
+ if (!*e || (*e == '@' && e[1] != '@' && draw_symbols)) break;
p = e;
}