Skip to content

Commit

Permalink
TechDraw: [skip ci] fix possible crash in QGIViewPart::drawFace
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 15, 2020
1 parent 71cd301 commit d752991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/TechDraw/Gui/QGIViewPart.cpp
Expand Up @@ -717,9 +717,12 @@ QGIFace* QGIViewPart::drawFace(TechDraw::Face* f, int idx)
std::vector<TechDraw::Wire *> fWires = f->wires;
QPainterPath facePath;
for(std::vector<TechDraw::Wire *>::iterator wire = fWires.begin(); wire != fWires.end(); ++wire) {
QPainterPath wirePath;
std::vector<TechDraw::BaseGeom*> geoms = (*wire)->geoms;
if (geoms.empty())
continue;

TechDraw::BaseGeom* firstGeom = geoms.front();
QPainterPath wirePath;
//QPointF startPoint(firstGeom->getStartPoint().x, firstGeom->getStartPoint().y);
//wirePath.moveTo(startPoint);
QPainterPath firstSeg = drawPainterPath(firstGeom);
Expand Down

0 comments on commit d752991

Please sign in to comment.