iotdashboard crash fixed

This commit is contained in:
Uwe Rathmann 2023-01-05 20:28:33 +01:00
parent 7d7eb87cbd
commit d80f9780fc
2 changed files with 8 additions and 1 deletions

View File

@ -241,7 +241,10 @@ namespace QskVertex
*/
if ( value > value0 )
contourIt.setGradientLine( value, colorIt.color(), l++ );
{
if ( contourIt.setGradientLine( value, colorIt.color(), l ) )
l++;
}
colorIt.advance();
}

View File

@ -752,8 +752,10 @@ static inline int qskFillLineCount(
lineCount += qMax( metrics.corner[ BottomLeft ].stepCount,
metrics.corner[ BottomRight ].stepCount ) + 1;
#if 0
if ( metrics.centerQuad.top >= metrics.centerQuad.bottom )
lineCount--;
#endif
}
else if ( dir.isHorizontal() )
{
@ -763,8 +765,10 @@ static inline int qskFillLineCount(
lineCount += qMax( metrics.corner[ TopRight ].stepCount,
metrics.corner[ BottomRight ].stepCount ) + 1;
#if 0
if ( metrics.centerQuad.left >= metrics.centerQuad.right )
lineCount--;
#endif
}
else
{