pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/texstudio texstudio: Avoid ambiguous function ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/60affd11cd11
branches:  trunk
changeset: 314560:60affd11cd11
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Oct 31 12:11:02 2018 +0000

description:
texstudio: Avoid ambiguous function call.

diffstat:

 editors/texstudio/distinfo                                |   3 ++-
 editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r e3bd57f214bf -r 60affd11cd11 editors/texstudio/distinfo
--- a/editors/texstudio/distinfo        Wed Oct 31 12:07:50 2018 +0000
+++ b/editors/texstudio/distinfo        Wed Oct 31 12:11:02 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2017/12/19 09:42:48 markd Exp $
+$NetBSD: distinfo,v 1.5 2018/10/31 12:11:02 jperkin Exp $
 
 SHA1 (texstudio-2.12.6.tar.gz) = 9a68dc26c14ea5b5c413ab5dfa02653e5b8a2557
 RMD160 (texstudio-2.12.6.tar.gz) = d184a71590c87610b4a8fb5540dd05f4d47b7df7
 SHA512 (texstudio-2.12.6.tar.gz) = 674667ce4137bfd30fc85e242c4ab891b3b6517cbdd2b6465fd4117ce2128e9854907cb52d42d5e4d60e8c5b38738eac95dbd140e5db67a21561ba6c617d80fb
 Size (texstudio-2.12.6.tar.gz) = 26578309 bytes
+SHA1 (patch-pdfviewer_PDFDocument.cpp) = 93cd5faa1bfade9d8eb50b62975aa0d76f8a417d
diff -r e3bd57f214bf -r 60affd11cd11 editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp Wed Oct 31 12:11:02 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-pdfviewer_PDFDocument.cpp,v 1.1 2018/10/31 12:11:03 jperkin Exp $
+
+Avoid ambiguous function call.
+
+--- pdfviewer/PDFDocument.cpp.orig     2017-08-12 12:00:03.000000000 +0000
++++ pdfviewer/PDFDocument.cpp
+@@ -3095,7 +3095,7 @@ retryNow:
+                       pdfWidget->setFocus();
+ 
+               // set page viewer only once
+-                int maxDigits = 1 + qFloor(log10(pdfWidget->realNumPages()));
++                int maxDigits = 1 + qFloor(log10((float)pdfWidget->realNumPages()));
+               //if (maxDigits < 2) maxDigits = 2;
+               leCurrentPage->setMaxLength(maxDigits);
+               leCurrentPage->setFixedWidth(fontMetrics().width(QString(maxDigits + 1, '#')));



Home | Main Index | Thread Index | Old Index