summaryrefslogtreecommitdiffstats
path: root/src/electronics
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-03-17 12:33:32 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-03-17 12:33:32 +0100
commit9b4c84b2f012bb9ee8ceb0215484d76744ab60a7 (patch)
tree621468a827ee89b318282cb4901371a88aa5338c /src/electronics
parentb1f96f3747575d577d32c3ee785ca2eedba27599 (diff)
downloadktechlab-9b4c84b2f012bb9ee8ceb0215484d76744ab60a7.tar.gz
ktechlab-9b4c84b2f012bb9ee8ceb0215484d76744ab60a7.zip
Fix crash when component is added to the circuit
This resolves bug reported in Debian BTS #493692
Diffstat (limited to 'src/electronics')
-rw-r--r--src/electronics/simulation/matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/electronics/simulation/matrix.cpp b/src/electronics/simulation/matrix.cpp
index fb1248f..0e9b167 100644
--- a/src/electronics/simulation/matrix.cpp
+++ b/src/electronics/simulation/matrix.cpp
@@ -288,7 +288,7 @@ void Matrix::displayLU()
Map::Map( const uint size )
{
m_size = size;
- m_map = new ETMap( m_size );
+ m_map = new ETMap( m_size, std::vector<uint>( m_size ) );
reset();
}