From 80d5c0fcde71562b2a6c48658acb26912ed95127 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Thu, 7 Nov 2019 14:35:27 +0000 Subject: [PATCH] - fixed crash due to wrong dimension of DrawComponent git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@621 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- source/DrawComponent.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/DrawComponent.cpp b/source/DrawComponent.cpp index be94cb6..0be0ce5 100644 --- a/source/DrawComponent.cpp +++ b/source/DrawComponent.cpp @@ -220,8 +220,7 @@ void DrawComponent::drawAt(int x, int y, bool setColor) void DrawComponent::clear() { - m_data.resize(m_width*m_height); - m_data = arma::zeros(m_width*m_height); + m_data = arma::zeros(1, m_width*m_height); DrawData(); }