[plasma/libkscreen] src: fix: setCvt() guard condition was backwards

zhang shoucheng <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7e98552d398258b9ba46300596ddb0a4f797e947 by zhang shoucheng.
Committed on 17/07/2026 at 08:37.
Pushed by vladz into branch 'master'.

fix: setCvt() guard condition was backwards

!= was used instead of ==, making setCvt() never actually change the value.

M  +1    -1    src/mode.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/7e98552d398258b9ba46300596ddb0a4f797e947

diff --git a/src/mode.cpp b/src/mode.cpp
index f59771aa..78ab4a0c 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -125,7 +125,7 @@ std::optional<Cvt> Mode::cvt() const
 
 void Mode::setCvt(const Cvt &cvt)
 {
-    if (d->cvt != cvt) {
+    if (d->cvt == cvt) {
         return;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.