Skip to content

Commit

Permalink
dangling reference fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Nov 14, 2024
1 parent baaccb2 commit 8dd5a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nodes/QskBoxRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 8dd5a7b

Please sign in to comment.