0b4ccbf81e
fillRule() contained a major blunder: instead of checking if the
d-pointer was allocated, and return a default value if it wasn't,
it checked whether the path contained any points. This means that
QPainterPath p;
p.setFillRule(x);
Q_ASSERT(p.fillRule() == x);
was failing.
As a drive-by to test this change, fix another mistake in clear():
clear is documented to clear the elements in a path, but instead
it also changed the fill rule.
This commit partially reverses
|
||
---|---|---|
.. | ||
.gitignore | ||
BLACKLIST | ||
CMakeLists.txt | ||
tst_qpainterpath.cpp |