extra check

This commit is contained in:
Val Erastov 2014-10-28 00:25:47 -07:00
parent 95d231378d
commit 0733fce16c

View file

@ -65,7 +65,7 @@ TCAD.TWO.AddSegmentTool.prototype.mousewheel = function(e) {
};
TCAD.TWO.AddSegmentTool.prototype.keydown = function(e) {
if (this.multi && e.keyCode == 27) {
if (this.multi && && this.line != null && e.keyCode == 27) {
this.viewer.remove(this.line);
this.viewer.refresh();
}