1

Fixing bug in global scale calculation

This commit is contained in:
Alex Yatskov 2015-03-22 11:19:09 +09:00
parent 8bc31046c7
commit c8d147deb8

View File

@ -341,8 +341,8 @@
function computeGlobalScale(columnsData) { function computeGlobalScale(columnsData) {
var globalScale = null; var globalScale = null;
for (var i = 0, count = columnsData.length; i < count; ++i) { for (var name in columnsData) {
var localScale = computeLocalScale(columnsData[i]); var localScale = computeLocalScale(columnsData[name]);
if (globalScale) { if (globalScale) {
globalScale.include(localScale); globalScale.include(localScale);
} }