git: 6f54d065a9d6 - main - audio/bambootracker: Fix build with clang15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Feb 2023 06:16:04 UTC
The branch main has been updated by ehaupt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6f54d065a9d6bbfc471531025bf1a478b1b8d72b
commit 6f54d065a9d6bbfc471531025bf1a478b1b8d72b
Author: Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-02-16 06:15:24 +0000
Commit: Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-02-16 06:16:00 +0000
audio/bambootracker: Fix build with clang15
Notified by: pkg-fallout
---
...ooTracker_gui_order__list__editor_order__list__panel.cpp | 13 +++++++++++++
1 file changed, 13 insertions(+)
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_;
+ }
+ }
+