Commit d5d518d3 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix infinite loop on multiline tick text - #714

parent f8e05116
...@@ -6522,7 +6522,7 @@ ...@@ -6522,7 +6522,7 @@
function split(splitted, text) { function split(splitted, text) {
spaceIndex = undefined; spaceIndex = undefined;
for (var i = 0; i < text.length; i++) { for (var i = 1; i < text.length; i++) {
if (text.charAt(i) === ' ') { if (text.charAt(i) === ' ') {
spaceIndex = i; spaceIndex = i;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -116,7 +116,7 @@ function c3_axis(d3, params) { ...@@ -116,7 +116,7 @@ function c3_axis(d3, params) {
function split(splitted, text) { function split(splitted, text) {
spaceIndex = undefined; spaceIndex = undefined;
for (var i = 0; i < text.length; i++) { for (var i = 1; i < text.length; i++) {
if (text.charAt(i) === ' ') { if (text.charAt(i) === ' ') {
spaceIndex = i; spaceIndex = i;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment