Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
reg.: 'fretBackground': local variable is initialized but not referenced (C4189)
  • Loading branch information
Jojo-Schmitz committed Aug 13, 2024
1 parent 3612c1b commit 84bdc52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/engraving/rendering/dev/chordlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,6 @@ void ChordLayout::layoutChords1(LayoutContext& ctx, Segment* segment, staff_idx_
std::vector<Note*> downStemNotes;
int upVoices = 0;
int downVoices = 0;
// Fret width plus white background box for TAB
const double fretBackground = ctx.conf().styleS(Sid::tabFretPadding).val() * staff->spatium(tick);
// double nominalWidth = !isTab ? ctx.conf().noteHeadWidth() * staff->staffMag(tick)
// : (ctx.conf().fretWidth(staffType) + 2 * fretBackground) * staff->staffMag(tick);
double nominalWidth = ctx.conf().noteHeadWidth() * staff->staffMag(tick);
double maxUpWidth = 0.0;
double maxDownWidth = 0.0;
Expand Down

0 comments on commit 84bdc52

Please sign in to comment.