do not keep empty text elements when stopping writing
This commit is contained in:
parent
b7ae69020a
commit
220bf0143c
1
draw.js
1
draw.js
|
|
@ -279,6 +279,7 @@ var DrawingArea = new Lang.Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
_stopWriting: function() {
|
_stopWriting: function() {
|
||||||
|
if (this.currentElement.text.length > 0)
|
||||||
this.elements.push(this.currentElement);
|
this.elements.push(this.currentElement);
|
||||||
this.currentElement = null;
|
this.currentElement = null;
|
||||||
this._stopCursorTimeout();
|
this._stopCursorTimeout();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue