Skip to content

Commit

Permalink
#6191 fallback to plotter instead of lodplottern when lod_filter is '…
Browse files Browse the repository at this point in the history
…line' (#6208)
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed Oct 27, 2017
1 parent 357fd1f commit 43880da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beakerx/js/src/plot/lodloader/plotLineLodLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ define([
}
this.lodOn = lod;

if (this.lodOn === true) {
if (this.lodOn === true && this.lodplotter) {
this.sample(scope);
this.lodplotter.render(scope, this.elementSamples);
} else {
Expand All @@ -174,7 +174,7 @@ define([
};

PlotLineLodLoader.prototype.setHighlighted = function(scope, highlighted) {
if (this.lodOn === true) {
if (this.lodOn === true && this.lodplotter) {
this.lodplotter.setHighlighted(scope, highlighted);
} else {
this.plotter.setHighlighted(scope, highlighted);
Expand Down Expand Up @@ -246,7 +246,7 @@ define([
};

PlotLineLodLoader.prototype.createTip = function(ele) {
if (this.lodOn === false) {
if (this.lodOn === false || !this.lodplotter) {
return this.plotter.createTip(ele);
}
var xAxis = this.xAxis,
Expand Down

0 comments on commit 43880da

Please sign in to comment.