summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/surface3drenderer.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-11-07 08:27:39 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-11-07 08:34:27 +0200
commit9266f124979fa8a4fe7d8b2fb2db496b26aeeda9 (patch)
treecacea83766e2e9aec076fe623b392e906d7ff5fc /src/datavisualization/engine/surface3drenderer.cpp
parentf93b13266db9ab663870aedb6fb6711b80effaba (diff)
Clear surface data array after array reset
Task-number: QTRD-2542 Change-Id: I5983b217ae15f17d75ac09fe3492e6d56b8e8152 Change-Id: I5983b217ae15f17d75ac09fe3492e6d56b8e8152 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/engine/surface3drenderer.cpp')
-rw-r--r--src/datavisualization/engine/surface3drenderer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/datavisualization/engine/surface3drenderer.cpp b/src/datavisualization/engine/surface3drenderer.cpp
index 3646ff20..f40bc7bd 100644
--- a/src/datavisualization/engine/surface3drenderer.cpp
+++ b/src/datavisualization/engine/surface3drenderer.cpp
@@ -251,6 +251,11 @@ void Surface3DRenderer::updateDataModel(QSurfaceDataProxy *dataProxy)
updateSelectionTexture();
}
}
+ } else {
+ for (int i = 0; i < m_dataArray.size(); i++)
+ delete m_dataArray.at(i);
+ m_dataArray.clear();
+ m_sampleSpace = QRect();
}
for (int i = 0; i < m_sliceDataArray.size(); i++)