Log Message: |
Making Thuban robust against shapefiles which contain empty shapes.
* libraries/thuban/wxproj.cpp(project_points): setting an exception
now if called with no points at all. This is necessary, because
the NULL pointer already indicates an error condition, thus it
cannot be used to indicate that there was no point in the result.
(draw_polygon_shape, (point_in_polygon_shape): stop if there
are no points in the shape.
Propagate an error condition on failure of (project_points()).
(point_in_polygon_shape): shifted some lines around to allow
a cleanup jump point.
* Thuban/Model/layer.py, Thuban/UI/viewport.py: removed unused import
of point_in_polygon_shape.
|