aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtdatavisualization.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-03-01 13:49:58 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-03-01 16:27:06 +0100
commitf5b03c14c9ac6130745b246b61b4dca427dc0e91 (patch)
tree181f30d444d74360156cf49c099655600acc630a /sources/pyside6/PySide6/glue/qtdatavisualization.cpp
parent88aa63dac828df46ef50f301434f50ceb0fb2dc0 (diff)
Fix QBarDataProxy::resetArray() crash
Pass an allocated array to the functions, similar to 00228b7605f63c58ab979362ecaa2bef96c7dc67 for QSurfaceDataProxy. Task-number: PYSIDE-1438 Task-number: PYSIDE-2206 Pick-to: 6.4 6.2 Change-Id: Ic3dd05b014b04425846889feb5e4df6cbe9d7675 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtdatavisualization.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtdatavisualization.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/glue/qtdatavisualization.cpp b/sources/pyside6/PySide6/glue/qtdatavisualization.cpp
index 049f9accc..92ff9cbc9 100644
--- a/sources/pyside6/PySide6/glue/qtdatavisualization.cpp
+++ b/sources/pyside6/PySide6/glue/qtdatavisualization.cpp
@@ -41,12 +41,17 @@ using ListType = decltype(%2);
using ListType = decltype(%2);
%CPPSELF.setRow(%1, new ListType(%2), %3);
// @snippet dataproxy-setrow-string
-//
+
// @snippet dataproxy-resetarray
using ListType = decltype(%1);
%CPPSELF.resetArray(new ListType(%1));
// @snippet dataproxy-resetarray
+// @snippet dataproxy-resetarray2
+using ListType = decltype(%1);
+%CPPSELF.resetArray(new ListType(%1), %2, %3);
+// @snippet dataproxy-resetarray2
+
// @snippet qsurfacedataproxy-resetarraynp
auto *data = QtDataVisualizationHelper::surfaceDataFromNp(%1, %2, %3, %4, %5);
// %CPPSELF.%FUNCTION_NAME