set pen position for all path initiated drawings

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iab1c9defa417b03232a53024eaa6f52232244d87
This commit is contained in:
Dennis Francis 2021-03-08 15:51:45 +05:30 committed by Dennis Francis
parent 46aa9ed6cc
commit 743ccdd370
2 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,10 @@ class CPolyline extends CPath {
if (this.pointSet.empty()) {
this.closePopup({});
}
if (this.renderer)
this.renderer.setPenOnOverlay();
return this.redraw(oldBounds);
}

View file

@ -69,10 +69,15 @@ class CanvasOverlay {
return this.overlaySection.getTestDivContainer();
}
setPenOnOverlay() {
this.overlaySection.containerObject.setPenPosition(this.overlaySection);
}
initPath(path: CPath) {
var pathId: number = path.getId();
this.paths.set(pathId, path);
path.setRenderer(this);
this.setPenOnOverlay();
path.updatePathAllPanes();
}