File: upstream_Fix-another-qreal-double-issue.patch

package info (click to toggle)
kst 2.0.8-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 30,712 kB
  • sloc: cpp: 97,085; ansic: 13,364; python: 2,970; sh: 761; yacc: 184; lex: 143; makefile: 140; perl: 30; xml: 30
file content (26 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 1365ccf2fd2da59025be623b97b7207f95ba8884 Mon Sep 17 00:00:00 2001
From: Barth Netterfield <netterfield@astro.utoronto.ca>
Date: Thu, 29 Jan 2015 11:18:41 -0500
Subject: [PATCH] Fix another qreal/double issue

CCBUG: 342642
---
 src/libkstmath/curve.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libkstmath/curve.cpp b/src/libkstmath/curve.cpp
index 7e8c4bb2..79182e6b 100644
--- a/src/libkstmath/curve.cpp
+++ b/src/libkstmath/curve.cpp
@@ -684,7 +684,7 @@ RelationPtr Curve::makeDuplicate() const {
 // and not just pulled out of the air by what looks ~good.
 // They are currently "about right" for printing to US Letter.
 double Curve::pointDim(QRectF w) const {
-  return qMax(qreal(1.01), PointSize * ((w.width() + w.height()) * (1.0 / 4000.0)));
+  return qMax(double(1.01), PointSize * ((w.width() + w.height()) * (1.0 / 4000.0)));
 }
 
 double Curve::lineDim(const QRectF &R, double linewidth) {
-- 
2.11.0