- 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
This commit is contained in:
2019-11-07 14:35:27 +00:00
parent e3499f2cab
commit 80d5c0fcde
+1 -2
View File
@@ -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();
}