diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-31 12:11:02 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-31 12:11:02 +0000 |
commit | 5dde18bbd925acb36c5fc0c188a3a14ccf258fb6 (patch) | |
tree | a2e6d83875b951dd957381ad1d69336953dcb26a /editors/texstudio | |
parent | 7ad2a3a091dcde37b86f9b8365d7a4c7cedb4180 (diff) | |
download | pkgsrc-5dde18bbd925acb36c5fc0c188a3a14ccf258fb6.tar.gz |
texstudio: Avoid ambiguous function call.
Diffstat (limited to 'editors/texstudio')
-rw-r--r-- | editors/texstudio/distinfo | 3 | ||||
-rw-r--r-- | editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/editors/texstudio/distinfo b/editors/texstudio/distinfo index ff4001b2ad7..5dc7f63ec72 100644 --- a/editors/texstudio/distinfo +++ b/editors/texstudio/distinfo @@ -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 --git a/editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp b/editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp new file mode 100644 index 00000000000..e717a6d816f --- /dev/null +++ b/editors/texstudio/patches/patch-pdfviewer_PDFDocument.cpp @@ -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, '#'))); |