Added guard statements to getMaxX and getMinX

Merged
#13 · Created  · Last updated

Merged pull request

Merged in cntwo/holographlibrary (pull request #13)

12ca106·Author: ·Closed by: ·2013-12-01

Description

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.

0 attachments

0 comments

Loading commits...