diff options
Diffstat (limited to 'dviware/dvisvgm/src/DVIToSVGActions.cpp')
-rw-r--r-- | dviware/dvisvgm/src/DVIToSVGActions.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/dviware/dvisvgm/src/DVIToSVGActions.cpp b/dviware/dvisvgm/src/DVIToSVGActions.cpp index 3d53d1bd4d..bb8e4d6f84 100644 --- a/dviware/dvisvgm/src/DVIToSVGActions.cpp +++ b/dviware/dvisvgm/src/DVIToSVGActions.cpp @@ -32,14 +32,6 @@ using namespace std; -DVIToSVGActions::DVIToSVGActions (DVIToSVG &dvisvg, SVGTree &svg) - : _svg(svg), _dvireader(&dvisvg), _bgcolor(Color::TRANSPARENT) -{ - _currentFontNum = -1; - _pageCount = 0; -} - - void DVIToSVGActions::reset() { _usedChars.clear(); _usedFonts.clear(); @@ -93,6 +85,9 @@ string DVIToSVGActions::getBBoxFormatString () const { * @param[in] vertical true if we're in vertical mode * @param[in] font font to be used */ void DVIToSVGActions::setChar (double x, double y, unsigned c, bool vertical, const Font &font) { + if (_outputLocked) + return; + // If we use SVG fonts there is no need to record all font name/char/size combinations // because the SVG font mechanism handles this automatically. It's sufficient to // record font names and chars. The various font sizes can be ignored here. @@ -167,6 +162,9 @@ void DVIToSVGActions::setChar (double x, double y, unsigned c, bool vertical, co * @param[in] height length of the vertical edges * @param[in] width length of the horizontal edges */ void DVIToSVGActions::setRule (double x, double y, double height, double width) { + if (_outputLocked) + return; + // (x,y) is the lower left corner of the rectangle auto rect = util::make_unique<XMLElement>("rect"); rect->addAttribute("x", x); |