From be966488e8fcfcffb2455e8484b0208a8ffd0f54 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 10 Aug 2020 23:05:07 +0200 Subject: [PATCH] Fix OSD D-Bus assertion with Qt 6 --- src/osd/osddbus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osddbus.cpp b/src/osd/osddbus.cpp index 1904a4636..454d58da4 100644 --- a/src/osd/osddbus.cpp +++ b/src/osd/osddbus.cpp @@ -83,7 +83,7 @@ QDBusArgument &operator<<(QDBusArgument &arg, const QImage &image) { arg.beginStructure(); arg << i.width(); arg << i.height(); - arg << i.bytesPerLine(); + arg << static_cast(i.bytesPerLine()); arg << i.hasAlphaChannel(); int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3); arg << i.depth() / channels;