From 9dcd9cdf6bb8a94a9967b9b8ed8a0d40c81800fc Mon Sep 17 00:00:00 2001 From: wandererfan Date: Wed, 18 Dec 2019 08:05:56 -0500 Subject: [PATCH] [TD]fix SectionFace hatch on SVG Export --- src/Mod/TechDraw/Gui/QGIViewSection.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Mod/TechDraw/Gui/QGIViewSection.cpp b/src/Mod/TechDraw/Gui/QGIViewSection.cpp index 4fd899f724..f0d6a292c9 100644 --- a/src/Mod/TechDraw/Gui/QGIViewSection.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewSection.cpp @@ -113,12 +113,19 @@ void QGIViewSection::drawSectionFace() newFace->setFillColor(faceColor); newFace->setFillStyle(Qt::SolidPattern); } else if (section->CutSurfaceDisplay.isValue("SvgHatch")) { - newFace->isHatched(true); - newFace->setFillMode(QGIFace::SvgFill); - newFace->setHatchColor(sectionVp->HatchColor.getValue()); - newFace->setHatchScale(section->HatchScale.getValue()); - std::string hatchSpec = section->FileHatchPattern.getValue(); - newFace->setHatchFile(hatchSpec); + if (getExporting()) { + newFace->hideSvg(true); + newFace->isHatched(false); + newFace->setFillMode(QGIFace::PlainFill); + } else { + newFace->hideSvg(false); + newFace->isHatched(true); + newFace->setFillMode(QGIFace::SvgFill); + newFace->setHatchColor(sectionVp->HatchColor.getValue()); + newFace->setHatchScale(section->HatchScale.getValue()); + std::string hatchSpec = section->FileHatchPattern.getValue(); + newFace->setHatchFile(hatchSpec); + } } else if (section->CutSurfaceDisplay.isValue("PatHatch")) { newFace->isHatched(true); newFace->setFillMode(QGIFace::GeomHatchFill);