Lubomir I. Ivanov a2a93ff04b Models: fix two potential crashes
CylinderModels::setDive() and WeightModel::setDive() have
potential to pass the 'last' argument to beginInsertRows() as
a negative number which triggers an assert that 'last' cannot
be smaller than 'first'.

Patch attempts to fix that by only calling beginInsertRows()
when there is at least one row to insert.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-10-13 11:31:25 -07:00
..
2013-09-02 05:57:08 -03:00
2013-07-11 09:22:20 -03:00
2013-08-13 20:29:22 +02:00
2013-10-13 11:30:36 -07:00
2013-06-19 10:20:56 -07:00
2013-05-17 22:27:50 -07:00
2013-10-07 11:48:14 -07:00
2013-09-26 16:55:41 -03:00
2013-10-13 11:31:25 -07:00
2013-10-11 11:42:33 -03:00
2013-06-19 10:20:56 -07:00