Permalink
Browse files

#4951 Trying to save chart as image crashes the browser

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information...
madhuracj committed Jun 9, 2015
1 parent e1f043c commit f2fd95405cf19156ed9453c7351798e7b1ff5bd8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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--;

0 comments on commit f2fd954

Please sign in to comment.