Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update anchor.js
It doesn't work when you have the address with nativeCol = 0
  • Loading branch information
Wojciech Wojtkowski authored Jul 10, 2019
commit eb56547d66fdbcd7c062742cbd9143178de7fd47
4 changes: 2 additions & 2 deletions lib/doc/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class Anchor {
this.nativeColOff = 0;
this.nativeRow = decoded.row + offset;
this.nativeRowOff = 0;
} else if (address.nativeCol) {
} else if (address.nativeCol !== undefined) {
this.nativeCol = address.nativeCol || 0;
this.nativeColOff = address.nativeColOff || 0;
this.nativeRow = address.nativeRow || 0;
this.nativeRowOff = address.nativeRowOff || 0;
} else if (address.col) {
} else if (address.col !== undefined) {
this.col = address.col + offset;
this.row = address.row + offset;
} else {
Expand Down