diff --git a/jquery.flot.selection.js b/jquery.flot.selection.js index 7f7b326..f34b84b 100644 --- a/jquery.flot.selection.js +++ b/jquery.flot.selection.js @@ -146,6 +146,8 @@ The plugin allso adds the following methods to the plot object: function getSelection() { if (!selectionIsSane()) return null; + + if (!selection.show) return null; var r = {}, c1 = selection.first, c2 = selection.second; $.each(plot.getAxes(), function (name, axis) {