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;
_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel

Reply via email to