[geos-devel] Envelope of empty Polygon
strk at refractions.net
strk at refractions.net
Wed Apr 5 04:26:59 EDT 2006
Mateusz Åoskot wrote:
> As you see above, copy ctor calls init() passing 'env' - a null Envelope
> returned from getEnvelopeInternal() call.
>
> But the
> Envelope::init(double x1, double x2, double y1, double y2)
> call reorganizes min/max values of corners to make Envelope properly
> oriented. This reorganizations brokes the state of Envelope - null
> state. So, null Envelope stops to be null with some magic :-)
Good report Mateus!
I guess the solution here is to just remove explicit
definition of the copy ctor and let compiler syntetize
it for us (Envelope doesn't contain any pointer).
What do you think ?
--strk;
More information about the geos-devel
mailing list