diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2020-09-08 16:50:13 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-01-05 12:43:09 +0100 |
| commit | 6974737695eae5a41bc8a3f344a4f1f199006f21 (patch) | |
| tree | 3f1c538155f47c5718aa64a624588962c248f5c9 /src/sql/doc/snippets/sqldatabase | |
| parent | 52e1603e33db9ef29fe1eff8c689d38166d393f1 (diff) | |
Change QLineF::setLength() to work whenever length() is non-zero
Previously it only worked when isNull() was false, which is true for
very short lines, even though length() may be non-zero.
[ChangeLog][QtCore][QLineF] QLineF::setLength() will now set the
length if the line's length() is non-zero. Previously, it was
documented to only set the length if isNull() was false; this is a
fuzzy check, so isNull() could be true for a line with non-zero
length().
Fixes: QTBUG-89569
Pick-to: 6.0 5.15
Change-Id: I803e622ad09c85815dde25df8dd3ba6dfcba0714
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions
