Skip to content

Commit

Permalink
Fix - enforce a if really needed
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 17, 2024
1 parent 7a429b6 commit dacad00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base/latex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function parseLatex(node, arg, label, curr) {
const gg = currG();

// this is indicator that gg element will be the only one, one can use directly main container
if ((nelements === 1) && !label && !curr.x && !curr.y)
if ((nelements === 1) && !label && !curr.x && !curr.y && !is_a)
return gg;

return makeTranslate(gg.append(is_a ? 'svg:a' : 'svg:g'), curr.x, curr.y);
Expand Down

0 comments on commit dacad00

Please sign in to comment.