From 9b4c84b2f012bb9ee8ceb0215484d76744ab60a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 17 Mar 2013 12:33:32 +0100 Subject: Fix crash when component is added to the circuit This resolves bug reported in Debian BTS #493692 --- src/electronics/simulation/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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( m_size ) ); reset(); } -- cgit v1.2.1