summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2023-02-16 07:15:24 +0100
committerEmanuel Haupt <ehaupt@FreeBSD.org>2023-02-16 07:16:00 +0100
commit6f54d065a9d6bbfc471531025bf1a478b1b8d72b (patch)
tree56f4bc02906a57c392c3e637efe818034802ca23
parentsecurity/clamav-lts: Update to 0.103.8 (diff)
audio/bambootracker: Fix build with clang15
Notified by: pkg-fallout
-rw-r--r--audio/bambootracker/files/patch-BambooTracker_gui_order__list__editor_order__list__panel.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/bambootracker/files/patch-BambooTracker_gui_order__list__editor_order__list__panel.cpp b/audio/bambootracker/files/patch-BambooTracker_gui_order__list__editor_order__list__panel.cpp
new file mode 100644
index 000000000000..2ebe79aa06d2
--- /dev/null
+++ b/audio/bambootracker/files/patch-BambooTracker_gui_order__list__editor_order__list__panel.cpp
@@ -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_;
+ }
+ }
+