[TD]remove obsolete exportingPdf flag handling

This commit is contained in:
wandererfan
2023-10-21 09:31:55 -04:00
committed by WandererFan
parent 327518c3c5
commit 4b80ea044d
6 changed files with 28 additions and 61 deletions

View File

@@ -75,7 +75,7 @@ using DU = DrawUtil;
const float lineScaleFactor = Rez::guiX(1.);// temp fiddle for devel
QGIViewPart::QGIViewPart() : m_isExporting(false)
QGIViewPart::QGIViewPart()
{
setCacheMode(QGraphicsItem::NoCache);
setHandlesChildEvents(false);
@@ -237,13 +237,7 @@ void QGIViewPart::drawAllFaces(void)
if (fHatch->isSvgHatch()) {
// svg tile hatch
newFace->setFillMode(QGIFace::SvgFill);
if (getExporting()) {
// SVG hatches don't work correctly when exported to PDF, so we need
// to tell the face to use a bitmap substitution for the SVG
newFace->hideSvg(true);
} else {
newFace->hideSvg(false);
}
newFace->hideSvg(false);
} else {
//bitmap hatch
newFace->setFillMode(QGIFace::BitmapFill);