diff options
author | Norbert Preining <norbert@preining.info> | 2023-02-22 03:01:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-02-22 03:01:37 +0000 |
commit | 470678475288a244fd8a9af69f9abc9b46b2860f (patch) | |
tree | b39e9f327aaf2a4b10bada3897e374878369fccc /dviware/dvisvgm/src/SVGTree.cpp | |
parent | b05164a5b679570a7040f2b28bbf156a0479c429 (diff) |
CTAN sync 202302220301
Diffstat (limited to 'dviware/dvisvgm/src/SVGTree.cpp')
-rw-r--r-- | dviware/dvisvgm/src/SVGTree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/SVGTree.cpp b/dviware/dvisvgm/src/SVGTree.cpp index edfb926d0c..74b6913b20 100644 --- a/dviware/dvisvgm/src/SVGTree.cpp +++ b/dviware/dvisvgm/src/SVGTree.cpp @@ -330,11 +330,11 @@ void SVGTree::pushPageContext (unique_ptr<SVGElement> node) { } -/** Pops the current context element and restored the previous one. */ +/** Pops the current context element and restores the previous one. */ void SVGTree::popPageContext () { if (!_pageContextStack.empty()) _pageContextStack.pop(); - _charHandler->setInitialContextNode(_page); + _charHandler->setInitialContextNode(_pageContextStack.empty() ? _page : _pageContextStack.top()); } |