diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_draw.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index bcf8962d2..2daaab077 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -38,6 +38,7 @@ #include "flstring.h" #include <ctype.h> +#include <math.h> #define MAXBUF 1024 @@ -309,7 +310,7 @@ void fl_measure(const char* str, int& w, int& h, int draw_symbols) { for (p = str, lines=0; p;) { e = expand(p, buf, w - symtotal, buflen, width, w != 0, draw_symbols); - if (int(width) > W) W = int(width); + if (int(ceil(width)) > W) W = int(ceil(width)); lines++; if (!*e || (*e == '@' && draw_symbols)) break; p = e; |
