diff options
author | Norbert Preining <norbert@preining.info> | 2019-11-16 03:00:48 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-11-16 03:00:48 +0000 |
commit | bad81a00a2943d1fb7ff2de3d0ae48c049dac302 (patch) | |
tree | ca23b6ca941037d20dce638d0859309f3c48c66d /dviware/dvisvgm/src/TpicSpecialHandler.cpp | |
parent | 0e223aaa93c5ee0c0e937c23f75535269324d217 (diff) |
CTAN sync 201911160300
Diffstat (limited to 'dviware/dvisvgm/src/TpicSpecialHandler.cpp')
-rw-r--r-- | dviware/dvisvgm/src/TpicSpecialHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/TpicSpecialHandler.cpp b/dviware/dvisvgm/src/TpicSpecialHandler.cpp index 7bfb7937eb..b97fa439af 100644 --- a/dviware/dvisvgm/src/TpicSpecialHandler.cpp +++ b/dviware/dvisvgm/src/TpicSpecialHandler.cpp @@ -101,7 +101,7 @@ static unique_ptr<XMLElement> create_ellipse_element (double cx, double cy, doub * @param[in] ddist dash/dot distance of line in PS point units (0:solid line, >0:dashed line, <0:dotted line) * @param[in] actions object providing the actions that can be performed by the SpecialHandler */ void TpicSpecialHandler::drawLines (double ddist, SpecialActions &actions) { - if (!_points.empty() && (_penwidth > 0 || _grayLevel >= 0)) { + if (!_points.empty() && (_penwidth > 0 || _grayLevel >= 0) && !actions.outputLocked()) { unique_ptr<XMLElement> elem; if (_points.size() == 1) { const DPair &p = _points.back(); @@ -147,7 +147,7 @@ void TpicSpecialHandler::drawLines (double ddist, SpecialActions &actions) { * @param[in] ddist length of dashes and gaps * @param[in] actions object providing the actions that can be performed by the SpecialHandler */ void TpicSpecialHandler::drawSplines (double ddist, SpecialActions &actions) { - if (!_points.empty() && _penwidth > 0) { + if (!_points.empty() && _penwidth > 0 && !actions.outputLocked()) { const size_t numPoints = _points.size(); if (numPoints < 3) { _grayLevel = -1; @@ -197,7 +197,7 @@ void TpicSpecialHandler::drawSplines (double ddist, SpecialActions &actions) { * @param[in] angle2 ending angle (clockwise) relative to x-axis * @param[in] actions object providing the actions that can be performed by the SpecialHandler */ void TpicSpecialHandler::drawArc (double cx, double cy, double rx, double ry, double angle1, double angle2, SpecialActions &actions) { - if (_penwidth > 0 || _grayLevel >= 0) { + if ((_penwidth > 0 || _grayLevel >= 0) && !actions.outputLocked()) { cx += actions.getX(); cy += actions.getY(); unique_ptr<XMLElement> elem; |