code simplified
This commit is contained in:
parent
6db25ff7bc
commit
5fad5bbef0
@ -115,9 +115,7 @@ static void qskRenderText(
|
|||||||
auto glyphNode = static_cast< QSGGlyphNode* >( parentNode->firstChild() );
|
auto glyphNode = static_cast< QSGGlyphNode* >( parentNode->firstChild() );
|
||||||
for ( int i = 0; i < layout->lineCount(); ++i )
|
for ( int i = 0; i < layout->lineCount(); ++i )
|
||||||
{
|
{
|
||||||
auto line = layout->lineAt( i );
|
const auto glyphRuns = layout->lineAt( i ).glyphRuns();
|
||||||
|
|
||||||
const auto glyphRuns = line.glyphRuns();
|
|
||||||
for ( const auto& glyphRun : glyphRuns )
|
for ( const auto& glyphRun : glyphRuns )
|
||||||
{
|
{
|
||||||
const bool doCreate = !glyphNode;
|
const bool doCreate = !glyphNode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user