|
@@ -356,6 +356,7 @@ export class SBaseCircleEdit extends SGraphEdit {
|
|
|
|
|
|
this.x = 0;
|
|
this.x = 0;
|
|
this.y = 0;
|
|
this.y = 0;
|
|
|
|
+ this.calRect();
|
|
} // Function moveToOrigin()
|
|
} // Function moveToOrigin()
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -385,7 +386,6 @@ export class SBaseCircleEdit extends SGraphEdit {
|
|
*/
|
|
*/
|
|
onDraw(painter: SPainter): void {
|
|
onDraw(painter: SPainter): void {
|
|
if (this.line.length == 2) {
|
|
if (this.line.length == 2) {
|
|
- this.calRect();
|
|
|
|
painter.pen.color = this.strokeColor;
|
|
painter.pen.color = this.strokeColor;
|
|
painter.brush.color = this.fillColor;
|
|
painter.brush.color = this.fillColor;
|
|
|
|
|