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:
parent
46aa9ed6cc
commit
743ccdd370
2 changed files with 9 additions and 0 deletions
|
@ -41,6 +41,10 @@ class CPolyline extends CPath {
|
|||
if (this.pointSet.empty()) {
|
||||
this.closePopup({});
|
||||
}
|
||||
|
||||
if (this.renderer)
|
||||
this.renderer.setPenOnOverlay();
|
||||
|
||||
return this.redraw(oldBounds);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue