diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2017-04-30 10:07:23 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2017-04-30 10:07:23 +0000 |
commit | aa9ba55255003e536d912f6a71b36cf6ab414449 (patch) | |
tree | 14a76c1351a42a41d3f48c96da3e0b221f278796 /math/qtiplot | |
parent | f1cbd3af4bb88ceef52c73f0a6630b461f05c772 (diff) | |
download | ports-aa9ba55255003e536d912f6a71b36cf6ab414449.tar.gz ports-aa9ba55255003e536d912f6a71b36cf6ab414449.zip |
Notes
Diffstat (limited to 'math/qtiplot')
-rw-r--r-- | math/qtiplot/files/patch-gentoogit_68af1bc_qtiplot-0.9.8.9-sip-4.19 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/math/qtiplot/files/patch-gentoogit_68af1bc_qtiplot-0.9.8.9-sip-4.19 b/math/qtiplot/files/patch-gentoogit_68af1bc_qtiplot-0.9.8.9-sip-4.19 new file mode 100644 index 000000000000..ed805d10c6e1 --- /dev/null +++ b/math/qtiplot/files/patch-gentoogit_68af1bc_qtiplot-0.9.8.9-sip-4.19 @@ -0,0 +1,46 @@ +Obtained from: https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-visualization/qtiplot + +sci-visualization/qtiplot: Fix build with >=sip-4.19 +Thanks-to: Fabio Rossi <rossi.f@inwind.it> +Gentoo-bug: 609280 + +Package-Manager: Portage-2.3.3, Repoman-2.3.1 + +--- qtiplot/src/scripting/qti.sip 2017-02-13 17:01:03.123828499 +0100 ++++ qtiplot/src/scripting/qti.sip 2017-02-13 17:02:12.628828234 +0100 +@@ -148,14 +148,14 @@ + } + break; + case Table::Date: +- if (sipCanConvertToType(item, sipType_QDateTime, 0)) { ++ if (sipCanConvertToType(item, sipFindType("QDateTime"), 0)) { + int isErr = 0; +- QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipType_QDateTime, ++ QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipFindType("QDateTime"), + 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr)); + if (isErr) + return 1; + table->setText(row, col, dateTime->toString(table->columnFormat(col))); +- delete dateTime; ++ //delete dateTime; + } + else { + if (PyType_Ready(item_type) == 0) +@@ -164,14 +164,14 @@ + } + break; + case Table::Time: +- if (sipCanConvertToType(item, sipType_QTime, 0)) { ++ if (sipCanConvertToType(item, sipFindType("QTime"), 0)) { + int isErr = 0; +- QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipType_QTime, ++ QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipFindType("QTime"), + 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr)); + if (isErr) + return 1; + table->setText(row, col, time->toString(table->columnFormat(col))); +- delete time; ++ //delete time; + } + else { + if (PyType_Ready(item_type) == 0) |