File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -381,14 +381,8 @@ class SvgRenderer {
381381 // Enlarge the bbox from the largest found stroke width
382382 // This may have false-positives, but at least the bbox will always
383383 // contain the full graphic including strokes.
384- // If the width or height is zero however, don't enlarge since
385- // they won't have a stroke width that needs to be enlarged.
386- let halfStrokeWidth ;
387- if ( bbox . width === 0 || bbox . height === 0 ) {
388- halfStrokeWidth = 0 ;
389- } else {
390- halfStrokeWidth = this . _findLargestStrokeWidth ( this . _svgTag ) / 2 ;
391- }
384+ const halfStrokeWidth = this . _findLargestStrokeWidth ( this . _svgTag ) / 2 ;
385+
392386 const width = bbox . width + ( halfStrokeWidth * 2 ) ;
393387 const height = bbox . height + ( halfStrokeWidth * 2 ) ;
394388 const x = bbox . x - halfStrokeWidth ;
You can’t perform that action at this time.
0 commit comments