Changeset View
Changeset View
Standalone View
Standalone View
libs/vectorimage/libwmf/WmfParser.cpp
Show First 20 Lines • Show All 653 Lines • ▼ Show 20 Line(s) | 650 | { | |||
---|---|---|---|---|---|
654 | 654 | | |||
655 | QRegion region = mDeviceContext.clipRegion; | 655 | QRegion region = mDeviceContext.clipRegion; | ||
656 | QRegion newRegion(left, top, right - left, bottom - top); | 656 | QRegion newRegion(left, top, right - left, bottom - top); | ||
657 | if (region.isEmpty()) { | 657 | if (region.isEmpty()) { | ||
658 | // FIXME: I doubt that if the region is previously empty, | 658 | // FIXME: I doubt that if the region is previously empty, | ||
659 | // it should be set to the new region. /iw | 659 | // it should be set to the new region. /iw | ||
660 | region = newRegion; | 660 | region = newRegion; | ||
661 | } else { | 661 | } else { | ||
662 | region = region.subtract(newRegion); | 662 | region = region.subtracted(newRegion); | ||
663 | } | 663 | } | ||
664 | 664 | | |||
665 | mDeviceContext.clipRegion = region; | 665 | mDeviceContext.clipRegion = region; | ||
666 | mDeviceContext.changedItems |= DCClipRegion; | 666 | mDeviceContext.changedItems |= DCClipRegion; | ||
667 | } | 667 | } | ||
668 | break; | 668 | break; | ||
669 | case (META_INTERSECTCLIPRECT & 0xff): | 669 | case (META_INTERSECTCLIPRECT & 0xff): | ||
670 | { | 670 | { | ||
▲ Show 20 Lines • Show All 1024 Lines • Show Last 20 Lines |