Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2020-02-13 19:57:55 +01:00
1 parent 612c32204b
commit 05bdab8d78
4 files changed
+11 -3

No files matched your search

+8 -1
View File
@@ -79,16 +79,23 @@ function newCoordinateSystem () {
if (thisObject.autoMaxScale === true && thisObject.max.y !== newMax) {
thisObject.max.y = newMax
newMax = -VERY_LARGE_NUMBER
mustRecalculate = true
}
if (thisObject.autoMaxScale === true) {
newMax = -VERY_LARGE_NUMBER
}
if (thisObject.autoMinScale === true && thisObject.min.y !== newMin) {
thisObject.min.y = newMin
newMin = VERY_LARGE_NUMBER
mustRecalculate = true
}
if (thisObject.autoMinScale === true) {
newMin = VERY_LARGE_NUMBER
}
if (mustRecalculate === true) {
recalculateScale()
}