Commit c2cb9881 authored by Alexander.Trofimov's avatar Alexander.Trofimov

newTextFormat -> null

parent b407881f
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
this.isSelectMode = c_oAscCellEditorSelectState.no; this.isSelectMode = c_oAscCellEditorSelectState.no;
this.hasCursor = false; this.hasCursor = false;
this.hasFocus = false; this.hasFocus = false;
this.newTextFormat = undefined; this.newTextFormat = null;
this.selectionTimer = undefined; this.selectionTimer = undefined;
this.enableKeyEvents = true; this.enableKeyEvents = true;
this.isTopLineActive = false; this.isTopLineActive = false;
...@@ -769,7 +769,7 @@ ...@@ -769,7 +769,7 @@
this._cleanFragments( opt.fragments ); this._cleanFragments( opt.fragments );
this.textRender.setString( opt.fragments, this.textFlags ); this.textRender.setString( opt.fragments, this.textFlags );
delete this.newTextFormat; this.newTextFormat = null;
if ( opt.zoom > 0 ) { if ( opt.zoom > 0 ) {
this.overlayCtx.setFont( this.drawingCtx.getFont() ); this.overlayCtx.setFont( this.drawingCtx.getFont() );
...@@ -1725,7 +1725,7 @@ ...@@ -1725,7 +1725,7 @@
if (this.newTextFormat) { if (this.newTextFormat) {
var oNewObj = new Fragment({format: this.newTextFormat, text: str}); var oNewObj = new Fragment({format: this.newTextFormat, text: str});
this._addFragments([oNewObj], pos); this._addFragments([oNewObj], pos);
delete this.newTextFormat; this.newTextFormat = null;
} else { } else {
f = this._findFragmentToInsertInto(pos); f = this._findFragmentToInsertInto(pos);
if (f) { if (f) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment