lineCount fixed ( clip nodes ended up with a final line with random
coordinates )
This commit is contained in:
parent
d7d90a9dc8
commit
55b2235d18
|
@ -1315,9 +1315,18 @@ void QskBoxRenderer::renderRectellipseFill(
|
||||||
|
|
||||||
const int stepCount = metrics.corner[ 0 ].stepCount;
|
const int stepCount = metrics.corner[ 0 ].stepCount;
|
||||||
|
|
||||||
int lineCount = 2 * ( stepCount + 1 );
|
int lineCount = 2 * stepCount;
|
||||||
|
|
||||||
if ( metrics.centerQuad.top >= metrics.centerQuad.bottom )
|
if ( metrics.centerQuad.top >= metrics.centerQuad.bottom )
|
||||||
|
{
|
||||||
|
// we need an extra line connecting the top/bottom corners
|
||||||
lineCount++;
|
lineCount++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// for some reason we have 2 more lines for true ellipses ??
|
||||||
|
lineCount += 2;
|
||||||
|
}
|
||||||
|
|
||||||
const auto line = allocateLines< Line >( geometry, lineCount );
|
const auto line = allocateLines< Line >( geometry, lineCount );
|
||||||
qskRenderFillLines( metrics, Qt::Vertical, line, ColorMapNone() );
|
qskRenderFillLines( metrics, Qt::Vertical, line, ColorMapNone() );
|
||||||
|
|
Loading…
Reference in New Issue