Skip to content

Commit

Permalink
accidental double-equal
Browse files Browse the repository at this point in the history
yeah yeah yeah I should add a linter
  • Loading branch information
chearon committed Dec 30, 2024
1 parent 102b09e commit f44f238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,7 @@ export class Paragraph {
bgcursor += item instanceof ShapedItem ? item.measure(mark, direction).advance : 0;
}

if (direction === 'rtl' && side === 'start' || direction == 'ltr' && side === 'end') {
if (direction === 'rtl' && side === 'start' || direction === 'ltr' && side === 'end') {
const direction = item.attrs.level & 1 ? 1 : -1;
bgcursor -= item instanceof ShapedItem ? item.measure(mark, direction).advance : 0;
}
Expand Down

0 comments on commit f44f238

Please sign in to comment.