summaryrefslogtreecommitdiffstats
path: root/examples/quick/controls/text/src/documenthandler.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-06-04 19:28:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-04 22:08:17 +0200
commitfef62c9b40ff1d79e62778e67c90f956da84b238 (patch)
treec279aca9f804159bd0a185303b8ab25c9d614c50 /examples/quick/controls/text/src/documenthandler.cpp
parentea30e6ff10180cea8f486e02d691a0d3410fd5c9 (diff)
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: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'examples/quick/controls/text/src/documenthandler.cpp')
0 files changed, 0 insertions, 0 deletions