mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-05 18:18:29 +00:00
remove qt fixer condition
This commit is contained in:
parent
5bee5deb22
commit
43c689b30a
@ -62,7 +62,7 @@ export class StyleEditorDialogComponent implements OnInit {
|
||||
this.element.stroke = this.drawing.element.stroke;
|
||||
let dasharray_value = this.drawing.element.stroke_dasharray;
|
||||
this.borderTypes.map((_) => {
|
||||
if (_.qt == dasharray_value) {
|
||||
if (_.qt == dasharray_value || _.value == dasharray_value) {
|
||||
dasharray_find_value = _.value;
|
||||
}
|
||||
});
|
||||
@ -72,7 +72,7 @@ export class StyleEditorDialogComponent implements OnInit {
|
||||
this.element.stroke = this.drawing.element.stroke;
|
||||
let dasharray_value = this.drawing.element.stroke_dasharray;
|
||||
this.borderTypes.map((_) => {
|
||||
if (_.qt == dasharray_value) {
|
||||
if (_.qt == dasharray_value || _.value == dasharray_value) {
|
||||
dasharray_find_value = _.value;
|
||||
}
|
||||
});
|
||||
@ -102,7 +102,7 @@ export class StyleEditorDialogComponent implements OnInit {
|
||||
if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) {
|
||||
this.drawing.element.fill = this.element.fill;
|
||||
this.drawing.element.stroke = this.element.stroke;
|
||||
this.drawing.element.stroke_dasharray = this.qtDasharrayFixer.fix(this.element.stroke_dasharray);
|
||||
this.drawing.element.stroke_dasharray = this.element.stroke_dasharray;
|
||||
this.drawing.element.stroke_width = this.element.stroke_width;
|
||||
} else if (this.drawing.element instanceof LineElement) {
|
||||
this.drawing.element.stroke = this.element.stroke;
|
||||
|
Loading…
x
Reference in New Issue
Block a user