summaryrefslogtreecommitdiffstats
path: root/src/electronics/simulation
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:41:14 +0100
commit322e38cdb405577fb90afa51e3e6809df921092e (patch)
tree9dc134cfefb7b8943b9e40cd2faf98eb890e67a8 /src/electronics/simulation
parent6f8853d29e27a397db8c123a4dd0cfa575910ca5 (diff)
downloadktechlab-322e38cdb405577fb90afa51e3e6809df921092e.tar.gz
ktechlab-322e38cdb405577fb90afa51e3e6809df921092e.zip
Fix crash when component is added to the circuit
This resolves bug reported in Debian BTS #493692 (cherry picked from commit 9b4c84b2f012bb9ee8ceb0215484d76744ab60a7)
Diffstat (limited to 'src/electronics/simulation')
-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();
}