Skip to content

Commit c7878b3

Browse files
committed
make 'atitle' check more strict
1 parent 76871db commit c7878b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/svg_text_utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ exports.convertToTspans = function(_context, gd, _callback) {
134134
else if(svgClass[0] === 'l') {
135135
newSvg.attr({x: _context.attr('x'), y: dy - (newSvgH / 2)});
136136
}
137-
else if(svgClass[0] === 'a' && svgClass.indexOf('atitle') === -1) {
137+
else if(svgClass[0] === 'a' && svgClass.indexOf('atitle') !== 0) {
138138
newSvg.attr({x: 0, y: dy});
139139
}
140140
else {

0 commit comments

Comments
 (0)