public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Pavel Raiskup <pavel@raiskup.cz>
To: git-commits@fedoraproject.org
Subject: [rpms/kompare] rawhide: Fixes: KDE#481778
Date: Fri, 26 Jun 2026 10:31:41 GMT [thread overview]
Message-ID: <178246990163.1.5468620085046943723.rpms-kompare-01816eff18a0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kompare
Branch : rawhide
Commit : 01816eff18a01276abd7b919e2bb2834d7eb2d84
Author : Pavel Raiskup <pavel@raiskup.cz>
Date : 2026-06-26T08:47:07+02:00
Stats : +22/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kompare/c/01816eff18a01276abd7b919e2bb2834d7eb2d84?branch=rawhide
Log:
Fixes: KDE#481778
---
diff --git a/kde-bug-481778.patch b/kde-bug-481778.patch
new file mode 100644
index 0000000..d1a7b21
--- /dev/null
+++ b/kde-bug-481778.patch
@@ -0,0 +1,15 @@
+https://bugs.kde.org/show_bug.cgi?id=481778
+
+diff --git a/src/komparepart/komparelistview.cpp b/src/komparepart/komparelistview.cpp
+index 61cd7bbd040e5c9d948fcea2deb0b7809aed7a8f..3deb472df045e7c39cda827113373b876024ef4a 100644
+--- a/src/komparepart/komparelistview.cpp
++++ b/src/komparepart/komparelistview.cpp
+@@ -745,7 +745,7 @@ void KompareListViewLineItem::init(int line, DifferenceString* text)
+ void KompareListViewLineItem::paintCell(QPainter* p, const QStyleOptionViewItem& option, int column)
+ {
+ int width = option.rect.width();
+- Qt::Alignment align = option.displayAlignment;
++ Qt::Alignment align = option.displayAlignment & ~Qt::AlignVCenter | Qt::AlignTop;
+
+ p->setRenderHint(QPainter::Antialiasing);
+ p->translate(option.rect.topLeft());
diff --git a/kompare.spec b/kompare.spec
index 226a1b4..13098b0 100644
--- a/kompare.spec
+++ b/kompare.spec
@@ -5,13 +5,15 @@ ExcludeArch: %{ix86}
Name: kompare
Summary: Diff tool
Version: 26.04.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GFDL-1.2-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only)
URL: https://apps.kde.org/kompare/
Source0: https://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz
+Patch0: kde-bug-481778.patch
+
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: kf6-rpm-macros
@@ -58,7 +60,7 @@ developing applications that use %{name}.
%prep
-%autosetup
+%autosetup -p1
%build
@@ -100,6 +102,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/org.kde.ko
%changelog
+* Fri Jun 26 2026 Pavel Raiskup <pavel@raiskup.cz> - 26.04.2-2
+- backport patch for text alignment issue (KDE Bug 481778)
+
* Tue Jun 02 2026 Steve Cossette <farchord@gmail.com> - 26.04.2-1
- 26.04.2
reply other threads:[~2026-06-26 10:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178246990163.1.5468620085046943723.rpms-kompare-01816eff18a0@fedoraproject.org \
--to=pavel@raiskup.cz \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox