summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-08-17 16:51:27 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-19 14:24:28 +0200
commit6a040d5c81cbca0de6290d363a20b4329d1456f8 (patch)
tree8b8606dcddb9704736515789e7ed52d3684449e1 /tests
parent7495b59dbda45049ba54f3682904962c217a9906 (diff)
Fix potential division by zero
Since it's possible to call the function on an empty model, return failure in that case. Change-Id: I0a0eabe917da3e6294bdd616a85579f6dc894ec8 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions