Skip to content

Commit

Permalink
fix 00e0 tick display
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software committed Nov 27, 2023
1 parent d00167f commit 2b43832
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/graphics/src/cpp/GOAxisHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ formatTick(TEXT_INTERPRETER_FORMAT textFormat, double val, bool scientificNotati
if (sign == L"-") {
exponent = sign + exponent;
}
label = mantissa + L"^{" + exponent + L"}";
if (exponent == L"0") {
label = mantissa;
} else {
label = mantissa + L"^{" + exponent + L"}";
}
}
} else {
size_t ePtr = label.size() - 1;
Expand Down
5 changes: 4 additions & 1 deletion modules/graphics/src/cpp/GOColorProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ namespace Nelson {
bool
GOColorProperty::isNone()
{
return (_data[0] < 0);
if (_data.size() > 0) {
return (_data[0] < 0);
}
return true;
}
//=============================================================================
void
Expand Down

0 comments on commit 2b43832

Please sign in to comment.