Opened 17 years ago

Last modified 15 years ago

#140 closed defect

Error in contains — at Version 2

Reported by: trunfio@… Owned by: strk@…
Priority: major Milestone:
Component: Core Version: main
Severity: Significant Keywords: imported, phpbugtracker
Cc: mloskot

Description (last modified by mloskot)

In Geometry::contains the optimization for rectangles doesn't work when

isRectangle()==false and g->isRectangle==true.
Indeed the case: 
if (g->isRectangle()) {
return predicate::RectangleContains::contains((const Polygon&)*g, *this);
}

is wrong and should be eliminated.

Change History (2)

comment:1 by strk@…, 17 years ago

Can you provide a testcase for the failure ?
An XML test would be best.

comment:2 by mloskot, 17 years ago

Cc: mloskot added
Description: modified (diff)
Note: See TracTickets for help on using tickets.