diff options
author | adridg <adridg@FreeBSD.org> | 2018-08-28 18:59:46 +0800 |
---|---|---|
committer | adridg <adridg@FreeBSD.org> | 2018-08-28 18:59:46 +0800 |
commit | 9ea852683210646590a0be3b39f218a37255845d (patch) | |
tree | be857e74cbb208d51b77994eb25520f848155cd1 /lang | |
parent | 3d7946d69c24e889006f62cf2d88487a06013894 (diff) | |
download | freebsd-ports-gnome-9ea852683210646590a0be3b39f218a37255845d.tar.gz freebsd-ports-gnome-9ea852683210646590a0be3b39f218a37255845d.tar.zst freebsd-ports-gnome-9ea852683210646590a0be3b39f218a37255845d.zip |
Fix build with clang7
PR: 230944
Reported by: jbeich
Diffstat (limited to 'lang')
-rw-r--r-- | lang/kturtle-kde4/files/patch-src_canvas.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/kturtle-kde4/files/patch-src_canvas.cpp b/lang/kturtle-kde4/files/patch-src_canvas.cpp new file mode 100644 index 000000000000..d9c3f60c3274 --- /dev/null +++ b/lang/kturtle-kde4/files/patch-src_canvas.cpp @@ -0,0 +1,19 @@ +--- src/canvas.cpp.orig 2018-08-28 10:55:27 UTC ++++ src/canvas.cpp +@@ -209,11 +209,11 @@ void Canvas::slotPrint(const QString& te + 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(bool(extra.contains(i18n("bold")))); ++ textFont->setItalic(bool(extra.contains(i18n("italic")))); ++ textFont->setUnderline(bool(extra.contains(i18n("underline")))); ++ textFont->setOverline(bool(extra.contains(i18n("overline")))); ++ textFont->setStrikeOut(bool(extra.contains(i18n("strikeout")))); + } + + void Canvas::slotReset() |