[TD]remove obsolete exportingPdf flag handling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user