Skip to content

Commit 8313da1

Browse files
committed
fix(svglandmarkrepresentation): apply default fontSize when no fontProperties are given
1 parent b7e6b0d commit 8313da1

File tree

1 file changed

+1
-1
lines changed
  • Sources/Widgets/SVG/SVGLandmarkRepresentation

1 file changed

+1
-1
lines changed

Sources/Widgets/SVG/SVGLandmarkRepresentation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function vtkSVGLandmarkRepresentation(publicAPI, model) {
7373
break;
7474
}
7575
text.setAttribute('dy', dy);
76+
text.setAttribute('font-size', fontSize);
7677
if (model.fontProperties != null) {
77-
text.setAttribute('font-size', fontSize);
7878
text.setAttribute('font-family', model.fontProperties.fontFamily);
7979
text.setAttribute('font-weight', model.fontProperties.fontStyle);
8080
text.setAttribute('fill', model.fontProperties.fontColor);

0 commit comments

Comments
 (0)