diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-14 04:04:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-14 04:04:03 +0100 |
commit | 2916cf6049cf9d3092021e247d56c580df6029a7 (patch) | |
tree | c796a6fc8b6fd0e4fd5ac06b009000b438fed7d9 /kde-misc | |
parent | 7b5306e0d287565138e8b051e32f57e6af6ae0ed (diff) |
gentoo auto-resync : 14:10:2024 - 04:04:03
Diffstat (limited to 'kde-misc')
-rw-r--r-- | kde-misc/Manifest.gz | bin | 3725 -> 3726 bytes | |||
-rw-r--r-- | kde-misc/kdiff3/Manifest | 2 | ||||
-rw-r--r-- | kde-misc/kdiff3/files/kdiff3-1.11.2-fix-fp-exception.patch | 55 | ||||
-rw-r--r-- | kde-misc/kdiff3/files/kdiff3-1.11.2-unknown-error.patch | 132 |
4 files changed, 0 insertions, 189 deletions
diff --git a/kde-misc/Manifest.gz b/kde-misc/Manifest.gz Binary files differindex 5360b7606b80..f31c6ad9f5a2 100644 --- a/kde-misc/Manifest.gz +++ b/kde-misc/Manifest.gz diff --git a/kde-misc/kdiff3/Manifest b/kde-misc/kdiff3/Manifest index e4b120a357c7..d2fa64abfd19 100644 --- a/kde-misc/kdiff3/Manifest +++ b/kde-misc/kdiff3/Manifest @@ -1,5 +1,3 @@ -AUX kdiff3-1.11.2-fix-fp-exception.patch 2064 BLAKE2B 9525e31fd81697c8da767c494578294a38d5cf0926e6e3e0cfd391f18cb845d89840279270bb89d87e13a8f75ab36081f0480b49ede4043aa3be13a9391fd63d SHA512 b8d8f946879b461e4a7a40e49118a0499af9b494c9706d56dca8a1d471a2ba297c40fb20b4eeb03c1216c8470883677a66f3eabc1d234f961047174bc32b47ef -AUX kdiff3-1.11.2-unknown-error.patch 4244 BLAKE2B 2710908ba06f54970eb069ab718776ce7401fe67d669ffb2f2c776a45ffddc2742f7aa357e467d06db6f1accf112447ba6ee699b4f7902a121b2a5e721e363c2 SHA512 dcba1787f99429584541e7c72e727cafbee88a652b98f7b349fc6deb74eb0b9f8f7fa49a1b0bcf972573164fa058a35ef6ffefd53c0396f12e911ee2a21b8abd DIST kdiff3-1.11.4.tar.xz 1142276 BLAKE2B c3c15b454a403613f84b24fff9c6ba06be54c7225232d6ea430641a492625b500b8dd735c06d2dd9ff30d64e3268fd74e98953731804079169dcc5ee609ac483 SHA512 3e3d7d93bb86ce5cd644f1e22209679ed3f83037a6f465d6a4f7b652e229da28b8f738a7239f60168c2d95c7f2c465bfdf9d716532d6048b4c0721ac458fddc5 EBUILD kdiff3-1.11.4.ebuild 1103 BLAKE2B 15b9d2df96b3388e63e29bc0996c77fc9a14767ed0fbeed9d28b466c3174fd148e1597483ec77192353f66462729ca541b8e1d3c8e1a33b22605039f885c6605 SHA512 7ea68edc898051e600ce8db18a76c607debbc31e388e4d612a972743847bd9651b93511c53128eb1fe365d8bd30d520a42994f1b251bbce16d5188944f2724be MISC metadata.xml 485 BLAKE2B fe3046c156af8000d379a96799587d89307e2664be0698ba9b847483f42031994707d16187740d9528a1d5ab26276802ae44218b820f949a35f3caef58223210 SHA512 f8c55957fdd76bf1019a3f543705bb4118deea1673d2fd1dab94528869f4ae65d34f81493f59bd4de40b02a64f9cacd054d7e576167fd8d18346b06e4bda5065 diff --git a/kde-misc/kdiff3/files/kdiff3-1.11.2-fix-fp-exception.patch b/kde-misc/kdiff3/files/kdiff3-1.11.2-fix-fp-exception.patch deleted file mode 100644 index b735d659f928..000000000000 --- a/kde-misc/kdiff3/files/kdiff3-1.11.2-fix-fp-exception.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 5965591080306c66a48e961d264f212989fdae94 Mon Sep 17 00:00:00 2001 -From: Michael Reeves <reeves.87@gmail.com> -Date: Thu, 4 Jul 2024 07:50:21 -0400 -Subject: [PATCH] Handle 0 height QWidget in getNofVisibleLines - -BUG:487338 -FIXED-IN:1.11.3 ---- - src/difftextwindow.cpp | 8 +++++--- - src/mergeresultwindow.cpp | 3 ++- - 2 files changed, 7 insertions(+), 4 deletions(-) - -diff --git a/src/difftextwindow.cpp b/src/difftextwindow.cpp -index 783d13a66..85c0419fd 100644 ---- a/src/difftextwindow.cpp -+++ b/src/difftextwindow.cpp -@@ -574,7 +574,9 @@ LineRef DiffTextWindow::convertDiff3LineIdxToLine(const LineType d3lIdx) const - */ - LineRef getBestFirstLine(LineRef line, LineType nofLines, LineRef firstLine, LineType visibleLines) - { -- if(line < visibleLines) //well known result. -+ assert(visibleLines >= 0); // VisibleLines should not be < 0. -+ -+ if(line < visibleLines || visibleLines == 0) //well known result. - return 0; - - LineRef newFirstLine = firstLine; -@@ -1412,8 +1414,8 @@ void DiffTextWindow::resizeEvent(QResizeEvent* e) - LineType DiffTextWindow::getNofVisibleLines() const - { - QFontMetrics fm = fontMetrics(); -- -- return height() / fm.lineSpacing() - 1; -+ //QWidget::height() may return 0 with certian configurations with 0 length input files loaded. -+ return std::max((LineType)ceil(height() / fm.lineSpacing()) - 1, 0); - } - - qint32 DiffTextWindow::getVisibleTextAreaWidth() const -diff --git a/src/mergeresultwindow.cpp b/src/mergeresultwindow.cpp -index b1100569d..46e50c945 100644 ---- a/src/mergeresultwindow.cpp -+++ b/src/mergeresultwindow.cpp -@@ -471,7 +471,8 @@ qint32 MergeResultWindow::getVisibleTextAreaWidth() const - qint32 MergeResultWindow::getNofVisibleLines() const - { - QFontMetrics fm = fontMetrics(); -- return (height() - 3) / fm.lineSpacing() - 2; -+ //QWidget::height() may return 0 with certian configurations with 0 length input files loaded. -+ return std::max((qint32)ceil((height() - 3) / fm.lineSpacing()) - 2, 0); - } - - qint32 MergeResultWindow::getTextXOffset() const --- -GitLab - diff --git a/kde-misc/kdiff3/files/kdiff3-1.11.2-unknown-error.patch b/kde-misc/kdiff3/files/kdiff3-1.11.2-unknown-error.patch deleted file mode 100644 index 22c1ec341f7a..000000000000 --- a/kde-misc/kdiff3/files/kdiff3-1.11.2-unknown-error.patch +++ /dev/null @@ -1,132 +0,0 @@ -From dbc690d7c5ae8e1917b214e14f21fedd4200c314 Mon Sep 17 00:00:00 2001 -From: Michael Reeves <reeves.87@gmail.com> -Date: Fri, 9 Aug 2024 22:36:39 -0400 -Subject: [PATCH] Move SourceData init to constructor for KDiff3App - -BUG: 486782 -FIXED-IN: 1.11.3 ---- - src/kdiff3.cpp | 33 +++++++++++++++++---------------- - src/kdiff3.h | 8 ++++++-- - src/kdiff3_shell.cpp | 4 ++-- - 3 files changed, 25 insertions(+), 20 deletions(-) - -diff --git a/src/kdiff3.cpp b/src/kdiff3.cpp -index a36fb6037..562e1dc8a 100644 ---- a/src/kdiff3.cpp -+++ b/src/kdiff3.cpp -@@ -113,13 +113,28 @@ bool KDiff3App::isDirComparison() const - /* - Don't call completeInit from here it will be called in KDiff3Shell as needed. - */ --KDiff3App::KDiff3App(QWidget* pParent, const QString& name, KDiff3Shell* pKDiff3Shell): -+KDiff3App::KDiff3App(QWidget* pParent, const QString& name, KDiff3Shell* pKDiff3Shell, const FileNames& names): - QMainWindow(pParent) - { - setWindowFlags(Qt::Widget); - setObjectName(name); - m_pKDiff3Shell = pKDiff3Shell; - -+ //Get SourceData objects intalized as soon as possiable or wierd errors can happen on startup. -+ if(!names.fn1.isEmpty()) -+ { -+ m_sd1->setFilename(names.fn1); -+ m_bDirCompare = m_sd1->isDir(); -+ } -+ if(!names.fn2.isEmpty()) -+ { -+ m_sd2->setFilename(names.fn2); -+ } -+ if(!names.fn3.isEmpty()) -+ { -+ m_sd3->setFilename(names.fn3); -+ } -+ - m_pCentralWidget = new QWidget(this); - QVBoxLayout* pCentralLayout = new QVBoxLayout(m_pCentralWidget); - pCentralLayout->setContentsMargins(0, 0, 0, 0); -@@ -440,25 +455,11 @@ void KDiff3App::doFileCompare() - mainInit(m_totalDiffStatus); - } - --void KDiff3App::completeInit(const QString& fn1, const QString& fn2, const QString& fn3) -+void KDiff3App::completeInit() - { - bool openError = false; - bool bSuccess = true; - -- if(!fn1.isEmpty()) -- { -- m_sd1->setFilename(fn1); -- m_bDirCompare = m_sd1->isDir(); -- } -- if(!fn2.isEmpty()) -- { -- m_sd2->setFilename(fn2); -- } -- if(!fn3.isEmpty()) -- { -- m_sd3->setFilename(fn3); -- } -- - //Should not fail ever. - assert(m_bDirCompare == m_sd1->isDir()); - if(m_bDirCompare != m_sd2->isDir() || (!m_sd3->isEmpty() && m_bDirCompare != m_sd3->isDir())) -diff --git a/src/kdiff3.h b/src/kdiff3.h -index f27276a42..328be6700 100644 ---- a/src/kdiff3.h -+++ b/src/kdiff3.h -@@ -101,6 +101,10 @@ class ReversibleScrollBar : public QScrollBar - void valueChanged2(qint32); - }; - -+struct FileNames { -+ const QString& fn1, fn2, fn3; -+}; -+ - /* - InitFlag - */ -@@ -124,7 +128,7 @@ class KDiff3App: public QMainWindow - public: - /** constructor of KDiff3App, calls all init functions to create the application. - */ -- KDiff3App(QWidget* parent, const QString& name, KDiff3Shell* pKDiff3Shell); -+ KDiff3App(QWidget* parent, const QString& name, KDiff3Shell* pKDiff3Shell, const FileNames& names); - ~KDiff3App() override; - - /** initializes the KActions of the application */ -@@ -141,7 +145,7 @@ class KDiff3App: public QMainWindow - void readOptions(KSharedConfigPtr); - - // Finish initialisation -- void completeInit(const QString& fn1 = QString(), const QString& fn2 = QString(), const QString& fn3 = QString()); -+ void completeInit(); - //Restore goementry and showMainWindow - void showMainWindow(); - -diff --git a/src/kdiff3_shell.cpp b/src/kdiff3_shell.cpp -index 190c03163..1bb0048f7 100644 ---- a/src/kdiff3_shell.cpp -+++ b/src/kdiff3_shell.cpp -@@ -26,7 +26,7 @@ - - KDiff3Shell::KDiff3Shell(const QString& fn1, const QString& fn2, const QString& fn3) - { -- m_widget = new KDiff3App(this, u8"KDiff3Part", this); -+ m_widget = new KDiff3App(this, u8"KDiff3Part", this, {fn1, fn2, fn3}); - assert(m_widget); - setStandardToolBarMenuEnabled(true); - -@@ -36,7 +36,7 @@ KDiff3Shell::KDiff3Shell(const QString& fn1, const QString& fn2, const QString& - - setCentralWidget(m_widget); - -- m_widget->completeInit(fn1, fn2, fn3); -+ m_widget->completeInit(); - chk_connect_a(m_widget, &KDiff3App::createNewInstance, this, &KDiff3Shell::slotNewInstance); - - // apply the saved mainwindow settings, if any, and ask the mainwindow --- -GitLab - |