Tim van der Meij 980aa10e04 Refactor annotation rectangle code and add unit tests
This patch refactors the code responsible for setting the annotation's rectangle. Its goal is to:

- Actually check that the input array is actually an array, and if so, that it contains exactly four elements.
- Only call `normalizeRect` if the input array is valid, i.e., we do not call it for the default rectangle anymore.

Unit tests are provided just like with the other patches in this series.
2015-07-20 22:01:47 +02:00
..
2014-07-18 22:34:50 +02:00
2015-02-17 11:07:37 -05:00
2015-02-17 11:07:37 -05:00
2015-02-17 11:07:37 -05:00
2015-04-03 20:17:20 +02:00
2015-02-17 11:07:37 -05:00