Project

General

Profile

Feature #6802 » 0003-Reapplied-cherry-picked-WPdfImage-changes.patch

Bruce Toll, 12/11/2018 11:08 PM

View differences:

src/Wt/WPdfImage.C
if (painter()->hasClipping()) {
const WTransform& t = painter()->clipPathTransform();
applyTransform(t);
if (!painter()->clipPath().isEmpty()) {
applyTransform(t);
drawPlainPath(painter()->clipPath());
HPDF_Page_Clip(page_);
HPDF_Page_EndPath(page_);
drawPlainPath(painter()->clipPath());
HPDF_Page_Clip(page_);
HPDF_Page_EndPath(page_);
applyTransform(t.inverted());
applyTransform(t.inverted());
}
}
applyTransform(painter()->combinedTransform());
......
void WPdfImage::drawPlainPath(const WPainterPath& path)
{
if (path.isEmpty())
return;
const std::vector<WPainterPath::Segment>& segments = path.segments();
if (segments.size() > 0
(3-3/8)