Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/jqplot
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-09 12:51:39 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-09 12:51:39 +0300
commitf2fd95405cf19156ed9453c7351798e7b1ff5bd8 (patch)
treeef4b339e967865e49c7494ce16c6fd2083c244f0 /js/jqplot
parente1f043c90f3bde797a550903d58c201f760abb74 (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.js2
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--;