Commit fef62c9b authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by The Qt Project
Browse files

Prevent possible division by zero


This might cause problems on certain platforms. While hard
to reproduce it seems safer to add the check.

Note that we do not get the alternating pattern if there is nothing
set on the model, but this was already the case.

Change-Id: I984df9cfef30b4de0e72e8ccf14cc65bddbf04ef
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
parent ea30e6ff
No related merge requests found
Showing with 1 addition and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment