remove qt fixer condition

This commit is contained in:
Rajnikant Lodhi 2022-08-24 18:04:20 +05:30
parent 5bee5deb22
commit 43c689b30a

View File

@ -62,7 +62,7 @@ export class StyleEditorDialogComponent implements OnInit {
this.element.stroke = this.drawing.element.stroke; this.element.stroke = this.drawing.element.stroke;
let dasharray_value = this.drawing.element.stroke_dasharray; let dasharray_value = this.drawing.element.stroke_dasharray;
this.borderTypes.map((_) => { this.borderTypes.map((_) => {
if (_.qt == dasharray_value) { if (_.qt == dasharray_value || _.value == dasharray_value) {
dasharray_find_value = _.value; dasharray_find_value = _.value;
} }
}); });
@ -72,7 +72,7 @@ export class StyleEditorDialogComponent implements OnInit {
this.element.stroke = this.drawing.element.stroke; this.element.stroke = this.drawing.element.stroke;
let dasharray_value = this.drawing.element.stroke_dasharray; let dasharray_value = this.drawing.element.stroke_dasharray;
this.borderTypes.map((_) => { this.borderTypes.map((_) => {
if (_.qt == dasharray_value) { if (_.qt == dasharray_value || _.value == dasharray_value) {
dasharray_find_value = _.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) { if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) {
this.drawing.element.fill = this.element.fill; this.drawing.element.fill = this.element.fill;
this.drawing.element.stroke = this.element.stroke; 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; this.drawing.element.stroke_width = this.element.stroke_width;
} else if (this.drawing.element instanceof LineElement) { } else if (this.drawing.element instanceof LineElement) {
this.drawing.element.stroke = this.element.stroke; this.drawing.element.stroke = this.element.stroke;