Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Jul 4, 2021
1 parent 7043038 commit 87f9a62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/keysignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class KeySignature extends StaveModifier {
this.glyphs.push(glyph);

const xPosition = this.xPositions[this.xPositions.length - 1];
const glyphWidth = glyph.getMetrics().width ?? 0 + extraWidth;
const glyphWidth = glyph.getMetrics().width + extraWidth;
// Store the next accidental's x position
this.xPositions.push(xPosition + glyphWidth);
// Expand size of key signature
Expand Down
1 change: 0 additions & 1 deletion src/keysignote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class KeySigNote extends Note {
preFormat(): this {
this.setPreFormatted(true);
this.keySignature.setStave(this.checkStave());
this.keySignature.format();
this.setWidth(this.keySignature.getWidth());
return this;
}
Expand Down

0 comments on commit 87f9a62

Please sign in to comment.