Fix null pointer bug from commit 7928fac3ce. In this context the options object is in "this", not workspace. ()

This commit is contained in:
picklesrus 2016-10-11 11:03:03 -07:00 committed by GitHub
parent acaf81185e
commit dad6e47f86

View file

@ -360,7 +360,7 @@ Blockly.WorkspaceSvg.prototype.addFlyout_ = function() {
disabledPatternId: this.options.disabledPatternId,
parentWorkspace: this,
RTL: this.RTL,
oneBasedIndex: workspace.options.oneBasedIndex,
oneBasedIndex: this.options.oneBasedIndex,
horizontalLayout: this.horizontalLayout,
toolboxPosition: this.options.toolboxPosition
};