From 8dd5a7b249edfa269a048496d9b6577297933fc2 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 14 Nov 2024 08:52:40 +0100 Subject: [PATCH] dangling reference fixed --- src/nodes/QskBoxRenderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nodes/QskBoxRenderer.cpp b/src/nodes/QskBoxRenderer.cpp index f5f039fbd..fd8ab5e52 100644 --- a/src/nodes/QskBoxRenderer.cpp +++ b/src/nodes/QskBoxRenderer.cpp @@ -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 );