Added guard statements to getMaxX and getMinX
Alex Allen
Branch: lxalln/holographlibrary:master
Branch: danielnadeau/holographlibrary:master
Merged
Merged pull request
Merged in cntwo/holographlibrary (pull request #13)
Merged in cntwo/holographlibrary (pull request #13)
When loading data asynchronously, the getMaxX and getMinX methods would crash, due to the lines array being empty.
Have added simple guard statements to prevent this crash. 0 is returned when there are no lines.