From dad6e47f86e617eeb22530c47c38b3f4bef9daa1 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Tue, 11 Oct 2016 11:03:03 -0700 Subject: [PATCH] Fix null pointer bug from commit 7928fac3cebd4ba310d94727e7b32ead06cb16b0. In this context the options object is in "this", not workspace. (#692) --- core/workspace_svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 34dfb2750..dad558f93 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -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 };