diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-09 12:51:39 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-09 12:51:39 +0300 |
commit | f2fd95405cf19156ed9453c7351798e7b1ff5bd8 (patch) | |
tree | ef4b339e967865e49c7494ce16c6fd2083c244f0 /js/jqplot | |
parent | e1f043c90f3bde797a550903d58c201f760abb74 (diff) |
#4951 Trying to save chart as image crashes the browser
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/jqplot')
-rw-r--r-- | js/jqplot/jquery.jqplot.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/jqplot/jquery.jqplot.js b/js/jqplot/jquery.jqplot.js index 49812b77fc..fc4f8b7406 100644 --- a/js/jqplot/jquery.jqplot.js +++ b/js/jqplot/jquery.jqplot.js @@ -9139,7 +9139,7 @@ for (var i=0; i<wl; i++) { w += words[i]; - if (context.measureText(w).width > tagwidth) { + if (context.measureText(w).width > tagwidth && w.length > words[i].length) { breaks.push(i); w = ''; i--; |