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 ) if ( value > value0 )
contourIt.setGradientLine( value, colorIt.color(), l++ ); {
if ( contourIt.setGradientLine( value, colorIt.color(), l ) )
l++;
}
colorIt.advance(); colorIt.advance();
} }

View File

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