Skip to content

Commit

Permalink
Fix some cases where measure unit disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
arkypita committed Jun 22, 2024
1 parent 4a1d19f commit 55880a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LaserGRBL/UserControls/GrblPanel3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ public void DrawRulers()
double wRatio = Width / (mCamera.Right - mCamera.Left);
// unit of measure
string uom = string.Empty;

HumanReadableLength(0, worldWidth, out uom); //call it just to be sure to have uom loaded by worldWidth
// draw horizontal
for (int i = (int)mCamera.Left + (int)(mPadding.Left / wRatio); i <= (int)mCamera.Right - (int)(mPadding.Right / wRatio); i += 1)
{
Expand Down

0 comments on commit 55880a0

Please sign in to comment.