Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jb46923' into 'master'
[calligra] Fix build with GCC6 and newer. Contributes to JB#46923 See merge request mer-core/calligra!13
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From fe9065fe6771df56604e9735f0eb4fbcdcca9933 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= <matti.lehtimaki@jolla.com> | ||
Date: Mon, 9 Sep 2019 21:47:57 +0300 | ||
Subject: [PATCH] Fix build with GCC6 and newer. | ||
|
||
--- | ||
libs/flake/KoSnapStrategy.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/libs/flake/KoSnapStrategy.cpp b/libs/flake/KoSnapStrategy.cpp | ||
index e67b0907367..442827defaa 100644 | ||
--- a/libs/flake/KoSnapStrategy.cpp | ||
+++ b/libs/flake/KoSnapStrategy.cpp | ||
@@ -177,7 +177,7 @@ bool ExtensionSnapStrategy::snap(const QPointF &mousePosition, KoSnapProxy * pro | ||
Q_ASSERT(std::isfinite(maxSnapDistance)); | ||
|
||
const qreal maxDistance = maxSnapDistance * maxSnapDistance; | ||
- qreal minDistances[2] = { HUGE_VAL, HUGE_VAL }; | ||
+ qreal minDistances[2] = { (qreal)HUGE_VAL, (qreal)HUGE_VAL }; | ||
|
||
QPointF snappedPoints[2] = { mousePosition, mousePosition }; | ||
QPointF startPoints[2]; | ||
-- | ||
2.17.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters