diff options
author | bubnikv <bubnikv@gmail.com> | 2016-10-18 17:44:05 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-10-18 17:44:05 +0300 |
commit | 53907a9cfee63abf99940bbffe5f1785d151e843 (patch) | |
tree | 3744bcdcbc4dc32e6dff3723786af0b57123beed /xs/xsp | |
parent | 26349b30c5ea31a457fcad18e8c8a14353db9582 (diff) |
Fix of a crash when setting a viewport over an empty platter.
Exported bounding box 'empty' method to perl.
Diffstat (limited to 'xs/xsp')
-rw-r--r-- | xs/xsp/BoundingBox.xsp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xs/xsp/BoundingBox.xsp b/xs/xsp/BoundingBox.xsp index efb5dea3b..fd07713f2 100644 --- a/xs/xsp/BoundingBox.xsp +++ b/xs/xsp/BoundingBox.xsp @@ -21,6 +21,7 @@ Clone<Polygon> polygon(); Clone<Point> size(); Clone<Point> center(); + bool empty() %code{% RETVAL = empty(*THIS); %}; double radius(); Clone<Point> min_point() %code{% RETVAL = THIS->min; %}; Clone<Point> max_point() %code{% RETVAL = THIS->max; %}; @@ -56,6 +57,7 @@ new_from_points(CLASS, points) Clone<Pointf> size(); Clone<Pointf> center(); double radius(); + bool empty() %code{% RETVAL = empty(*THIS); %}; Clone<Pointf> min_point() %code{% RETVAL = THIS->min; %}; Clone<Pointf> max_point() %code{% RETVAL = THIS->max; %}; double x_min() %code{% RETVAL = THIS->min.x; %}; @@ -94,6 +96,7 @@ new_from_points(CLASS, points) Clone<Pointf3> size(); Clone<Pointf3> center(); double radius(); + bool empty() %code{% RETVAL = empty(*THIS); %}; Clone<Pointf3> min_point() %code{% RETVAL = THIS->min; %}; Clone<Pointf3> max_point() %code{% RETVAL = THIS->max; %}; double x_min() %code{% RETVAL = THIS->min.x; %}; |