Commit e9079c3e authored by David Schnur's avatar David Schnur

Merge pull request #852 from ncb000gt/master

Return null from getSelection if there's no selection.
parents baaec0d0 54ce0b2e
......@@ -147,6 +147,8 @@ The plugin allso adds the following methods to the plot object:
if (!selectionIsSane())
return null;
if (!selection.show) return null;
var r = {}, c1 = selection.first, c2 = selection.second;
$.each(plot.getAxes(), function (name, axis) {
if (axis.used) {
......
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