dangling reference fixed

This commit is contained in:
Uwe Rathmann 2024-11-14 08:52:40 +01:00
parent baaccb2f41
commit 8dd5a7b249

View File

@ -168,7 +168,8 @@ void QskBoxRenderer::setColoredBorderLines( const QRectF& rect,
geometry.setDrawingMode( QSGGeometry::DrawTriangleStrip );
geometry.markVertexDataDirty();
const QskBoxBasicStroker stroker( QskBoxMetrics( rect, shape, border ), borderColors );
const QskBoxMetrics metrics( rect, shape, border );
const QskBoxBasicStroker stroker( metrics, borderColors );
if ( auto lines = qskAllocateColoredLines( geometry, stroker.borderCount() ) )
stroker.setBoxLines( lines, nullptr );