- 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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user