From 5fad5bbef060d3a773370bbd99c5468dea601d56 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 30 Oct 2017 15:23:30 +0100 Subject: [PATCH] code simplified --- src/nodes/QskPlainTextRenderer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nodes/QskPlainTextRenderer.cpp b/src/nodes/QskPlainTextRenderer.cpp index a2e124b8..9c6c748e 100644 --- a/src/nodes/QskPlainTextRenderer.cpp +++ b/src/nodes/QskPlainTextRenderer.cpp @@ -115,9 +115,7 @@ static void qskRenderText( auto glyphNode = static_cast< QSGGlyphNode* >( parentNode->firstChild() ); for ( int i = 0; i < layout->lineCount(); ++i ) { - auto line = layout->lineAt( i ); - - const auto glyphRuns = line.glyphRuns(); + const auto glyphRuns = layout->lineAt( i ).glyphRuns(); for ( const auto& glyphRun : glyphRuns ) { const bool doCreate = !glyphNode;