diff --git a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.ts b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.ts index f7b66c4e..0c0da668 100644 --- a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.ts +++ b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.ts @@ -60,7 +60,10 @@ export class StyleEditorDialogComponent implements OnInit { if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) { this.element.fill = this.drawing.element.fill; this.element.stroke = this.drawing.element.stroke; - let dasharray_value = this.drawing.element.stroke_dasharray ?? 'none'; + let dasharray_value = + this.drawing.element.stroke_dasharray ?? + this.drawing.element.stroke_width ?? + (this.drawing.element.stroke_width == undefined || this.drawing.element.stroke_width == 0 ? '' : 'none'); this.borderTypes.map((_) => { if (_.qt == dasharray_value || _.value == dasharray_value) { dasharray_find_value = _.value;