Fix relationship on over

This commit is contained in:
Paulo Gustavo Veiga 2022-01-24 10:46:57 -08:00
parent a4b933e3b6
commit ef3af99e9b

View File

@ -167,7 +167,7 @@ class Relationship extends ConnectionLine {
workspace.append(this._controlPointsController);
this._controlPointControllerListener = this._initializeControlPointController.bind(this);
if (workspace.isReadOnly) {
if (workspace.isReadOnly()) {
this._line2d.setCursor('default');
} else {
this._line2d.addEvent('click', this._controlPointControllerListener);