Kaydet (Commit) 8e9ad038 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#38580 NULL object

üst 78c5ae94
......@@ -1533,10 +1533,10 @@ namespace cppcanvas
case EmfPlusRecordTypeSetClipRegion: {
EMFP_DEBUG (printf ("EMF+ SetClipRegion\n"));
EMFP_DEBUG (printf ("EMF+\tregion in slot: %d combine mode: %d\n", flags & 0xff, (flags & 0xff00) >> 8));
EMFPRegion& region = *(EMFPRegion*) aObjects [flags & 0xff];
EMFPRegion *region = (EMFPRegion*)aObjects [flags & 0xff];
// reset clip
if (region.parts == 0 && region.initialState == EmfPlusRegionInitialStateInfinite) {
if (region && region->parts == 0 && region->initialState == EmfPlusRegionInitialStateInfinite) {
updateClipping (::basegfx::B2DPolyPolygon (), rFactoryParms, false);
} else {
EMFP_DEBUG (printf ("EMF+\tTODO\n"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment