diff --git a/NEWS.txt b/NEWS.txt index 5f1e501..38ed81a 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -39,6 +39,9 @@ Bug fixes: (problem reported by Morgan). - Fixed problem with turning off bar outline (issue 253, fix by Jordi Castells). +- Check the selection passed into setSelection in the selection + plugin, to guard against errors when synchronizing plots (fix by Lau + Bech Lauritzen). Flot 0.6 -------- diff --git a/jquery.flot.selection.js b/jquery.flot.selection.js index da81c92..8cf8296 100644 --- a/jquery.flot.selection.js +++ b/jquery.flot.selection.js @@ -232,7 +232,7 @@ The plugin allso adds the following methods to the plot object: selection.show = true; plot.triggerRedrawOverlay(); - if (!preventEvent) + if (!preventEvent && selectionIsSane()) triggerSelectedEvent(); }