Attempt to fix Coverity warning.

This commit is contained in:
Jeff Young
2025-06-20 11:17:24 +01:00
parent 38f6fc496b
commit a5d11a1673
+1 -1
View File
@@ -565,7 +565,7 @@ int SCH_TEXTBOX::compare( const SCH_ITEM& aOther, int aCompareFlags ) const
return IsItalic() - tmp->IsItalic();
if( GetHorizJustify() != tmp->GetHorizJustify() )
return GetHorizJustify() - tmp->GetHorizJustify();
return (int) GetHorizJustify() - (int) tmp->GetHorizJustify();
if( GetTextAngle().AsTenthsOfADegree() != tmp->GetTextAngle().AsTenthsOfADegree() )
return GetTextAngle().AsTenthsOfADegree() - tmp->GetTextAngle().AsTenthsOfADegree();