From b5c56f7f8043391d1236eefcf4510d54d9aee4a2 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 14 Nov 2024 10:52:08 +0100 Subject: [PATCH] mismatch between allocated and used memory fixed --- src/nodes/QskBoxBasicStroker.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nodes/QskBoxBasicStroker.cpp b/src/nodes/QskBoxBasicStroker.cpp index 0221e3b9..2f9bc0e1 100644 --- a/src/nodes/QskBoxBasicStroker.cpp +++ b/src/nodes/QskBoxBasicStroker.cpp @@ -248,8 +248,7 @@ static inline void qskCreateFill( using namespace QskVertex; using namespace Qt; - const auto cn = m_metrics.corners; - const bool isHorizontal = m_metrics.preferredOrientation == Qt::Horizontal; + const bool isHorizontal = ( m_metrics.preferredOrientation == Qt::Horizontal ); if ( !m_metrics.isInsideRounded ) { @@ -258,7 +257,7 @@ static inline void qskCreateFill( } else if ( m_metrics.isOutsideSymmetric ) { - const int stepCount = cn[ 0 ].stepCount; + const int stepCount = m_metrics.corners[ 0 ].innerStepCount(); if ( isHorizontal ) {