defensive check added
This commit is contained in:
parent
5d73e5eda2
commit
93983e23c5
@ -193,13 +193,14 @@ void QskBoxRenderer::setColoredBorderAndFillLines( const QRectF& rect,
|
|||||||
const int fillCount = stroker.fillCount();
|
const int fillCount = stroker.fillCount();
|
||||||
const int borderCount = stroker.borderCount();
|
const int borderCount = stroker.borderCount();
|
||||||
|
|
||||||
auto lines = qskAllocateColoredLines( geometry, borderCount + fillCount );
|
if ( auto lines = qskAllocateColoredLines( geometry, borderCount + fillCount ) )
|
||||||
|
{
|
||||||
auto fillLines = fillCount ? lines : nullptr;
|
auto fillLines = fillCount ? lines : nullptr;
|
||||||
auto borderLines = borderCount ? lines + fillCount : nullptr;
|
auto borderLines = borderCount ? lines + fillCount : nullptr;
|
||||||
|
|
||||||
stroker.setBoxLines( borderLines, fillLines );
|
stroker.setBoxLines( borderLines, fillLines );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user