Testing the null
-
Find in code :
// Check the result of area to avoid a Nan in display
if (Area.GetValueOrDefault(-1) == -1)
{
return 0;
}return Area;
It's lucky that Area is non negative.
-
Find in code :
// Check the result of area to avoid a Nan in display
if (Area.GetValueOrDefault(-1) == -1)
{
return 0;
}return Area;
It's lucky that Area is non negative.
bourdiitsme wrote:
// Check the result of area to avoid a Nan in display
Why are you trying to avoid exhibiting my maternal Grandmother?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
bourdiitsme wrote:
// Check the result of area to avoid a Nan in display
Why are you trying to avoid exhibiting my maternal Grandmother?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
:laugh: Nobody wants to see your grandmother on display. :~
-
:laugh: Nobody wants to see your grandmother on display. :~
You have no idea how glad that makes me! I don't think she'd be too happy herself - she has been dead for years... :laugh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
Find in code :
// Check the result of area to avoid a Nan in display
if (Area.GetValueOrDefault(-1) == -1)
{
return 0;
}return Area;
It's lucky that Area is non negative.
-
I wonder if the code at some point had some different instructions, possibly logging, for the null and non-null cases?
It's just a little fix to get a value and not a Nan (french-glish comments! :laugh: ). Why do simple ?