File Fix-warning.patch of Package kturtle4

From 109236828c6f417e364cc3c618450827b51359a4 Mon Sep 17 00:00:00 2001
From: Montel Laurent <montel@kde.org>
Date: Thu, 29 Jun 2017 09:20:25 +0200
Subject: [PATCH] Fix warning

---
 src/canvas.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/canvas.cpp b/src/canvas.cpp
index 9b2b846..1aa45e3 100644
--- a/src/canvas.cpp
+++ b/src/canvas.cpp
@@ -210,11 +210,11 @@ void Canvas::slotPrint(const QString& text)
 void Canvas::slotFontType(const QString& family, const QString& extra)
 {
 	textFont->setFamily(family);
-	textFont->setBold(extra.contains(i18n("bold")) > 0);
-	textFont->setItalic(extra.contains(i18n("italic")) > 0);
-	textFont->setUnderline(extra.contains(i18n("underline")) > 0);
-	textFont->setOverline(extra.contains(i18n("overline")) > 0);
-	textFont->setStrikeOut(extra.contains(i18n("strikeout")) > 0);
+	textFont->setBold(extra.contains(i18n("bold")));
+	textFont->setItalic(extra.contains(i18n("italic")));
+	textFont->setUnderline(extra.contains(i18n("underline")));
+	textFont->setOverline(extra.contains(i18n("overline")));
+	textFont->setStrikeOut(extra.contains(i18n("strikeout")));
 }
 
 void Canvas::slotReset()
-- 
GitLab

openSUSE Build Service is sponsored by