Skip to content

Commit 601bbcd

Browse files
committed
fix robbine baseline...
1 parent 7b302d3 commit 601bbcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/traces/surface/convert.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ proto.calcXnums = function(xlen) {
227227
var a = this.getXat(i - 1, 0);
228228
var b = this.getXat(i, 0);
229229

230-
if(a !== undefined && a !== null &&
231-
b !== undefined && b !== null &&
232-
b != a) {
230+
if(b !== a &&
231+
a !== undefined && a !== null &&
232+
b !== undefined && b !== null) {
233233
nums[i - 1] = Math.round(
234234
maxDist / Math.abs(b - a)
235235
);
@@ -250,9 +250,9 @@ proto.calcYnums = function(ylen) {
250250
var a = this.getYat(0, i - 1);
251251
var b = this.getYat(0, i);
252252

253-
if(a !== undefined && a !== null &&
254-
b !== undefined && b !== null &&
255-
b != a) {
253+
if(b !== a &&
254+
a !== undefined && a !== null &&
255+
b !== undefined && b !== null) {
256256
nums[i - 1] = Math.round(
257257
maxDist / Math.abs(b - a)
258258
);

test/image/baselines/gl3d_ribbons.png

-8.73 KB
Loading

0 commit comments

Comments
 (0)