Comment 20 for bug 1294713

Revision history for this message
David Mathog (mathog) wrote :

Looked into "Untitled 6.emf" with "reademf" from libUEMF and it shows only a single INTERSECTCLIPRECT record which is the size of the entire drawing. Everything drawn after that falls between the next SAVEDC and RESTOREDC, so it should all be clipped, not just the first one. In this example the clipping does nothing useful, since all 3 rectangles are within the drawing.

Clearly I need to revisit this code. In its present incarnation it will only clip the first graphic element that follows the definition of the rectangular clipping region, but at least it no longer blows up when unclipping, and when it fails, it fails by doing no clipping. Not great, but better than clipping the wrong thing.