Skip to content

Commit

Permalink
audio/bambootracker: Fix build with clang15
Browse files Browse the repository at this point in the history
Notified by:	pkg-fallout
  • Loading branch information
ehaupt committed Feb 16, 2023
1 parent 569b687 commit 6f54d06
Showing 1 changed file with 13 additions and 0 deletions.
@@ -0,0 +1,13 @@
--- BambooTracker/gui/order_list_editor/order_list_panel.cpp.orig 2023-02-04 06:49:52 UTC
+++ BambooTracker/gui/order_list_editor/order_list_panel.cpp
@@ -709,9 +709,8 @@ void OrderListPanel::drawBorders(int maxWidth)
QPainter painter(&backPixmap_);
painter.setPen(palette_->odrBorderColor);
painter.drawLine(rowNumWidth_, 0, rowNumWidth_, backPixmap_.height());
- for (int x = rowNumWidth_ + trackWidth_, trackVisIdx = leftTrackVisIdx_; x <= maxWidth; ++trackVisIdx) {
+ for (int x = rowNumWidth_ + trackWidth_; x <= maxWidth; x += trackWidth_) {
painter.drawLine(x, 0, x, backPixmap_.height());
- x += trackWidth_;
}
}

0 comments on commit 6f54d06

Please sign in to comment.