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