diff options
author | Edward Welbourne <edward.welbourne@theqtcompany.com> | 2016-05-19 18:06:59 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2016-07-15 11:35:12 +0000 |
commit | 178ab885626bcd67507fde7f67f65c1872ac3be3 (patch) | |
tree | e3ec46fa4320bb13918825363bdcd6fafe2cf24e /src/corelib/tools/qchar.cpp | |
parent | 89765ced6e9ce7e20aa1090439869509f86a070a (diff) |
PathStrokeRenderer::initializePoints(): use float division
The (example) code used a real to hold 360 / 7, which is of course 51,
discarding the 3/7 that was most likely meant to be kept. Noticed by
Coverity (CID 22364). Use 360.0 instead of 360 to get more accurate
results.
Change-Id: Ifdfbb932589d8ea728710e8b656af651c9f8a7d2
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/tools/qchar.cpp')
0 files changed, 0 insertions, 0 deletions