Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.15k stars 213 forks source link

Crash when Editing Component Properties #146

Closed in3otd closed 9 years ago

in3otd commented 9 years ago

just a quick note and fix; while working on the font size stuff I saw that Qucs crashes in the Edit Component Properties dialog in some cases. e.g. : place an AC Simulation component (Select Components -> Simulations -> ac simulation), double click it to go to 'Edit Component Properties', select the 'Properties' tab, click on calculate noise voltages to select yes, click again to select no -> Qucs crashes

The problem is in the line https://github.com/Qucs/qucs/blob/master/qucs/qucs/components/componentdialog.cpp#L629 which should be

if ( row < (prop->rowCount() - 1)) {

Will include this with the font size stuff modifications, hopefully in a few days...

in3otd commented 9 years ago

Fixed by PR #98