CPath: when empty close any popups

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic44ff6d432b8f5e05e439de9c60b41763493e900
This commit is contained in:
Dennis Francis 2021-03-01 13:38:04 +05:30 committed by Dennis Francis
parent cb1b5d4e64
commit 03f413a25b

View file

@ -38,6 +38,9 @@ class CPolyline extends CPath {
this.pointSet = pointSet;
this.updateRingsBounds();
if (this.pointSet.empty()) {
this.closePopup({});
}
return this.redraw(oldBounds);
}