Skip to content

Commit

Permalink
Version 1.7.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
svenhb authored Nov 4, 2023
1 parent ffd4eaf commit 3b4c5e6
Show file tree
Hide file tree
Showing 5 changed files with 37,933 additions and 37,945 deletions.
7 changes: 5 additions & 2 deletions GRBL-Plotter/MachineControl/ControlHeightMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ You should have received a copy of the GNU General Public License
* 2023-02-20 optional y-x scan
* 2023-05-08 l:996 f:AddScanCode add axis-string for X/Y seperation
* 2023-08-01 check if (!ImageSize.IsEmpty)
* 2023-11-02 l:1412 f:LoadMap Bug fix "Value was either too large or too small for a Decimal"
*/

using System;
Expand Down Expand Up @@ -1408,8 +1409,10 @@ private void LoadMap(string file, bool rememberPath = true)
Map = HeightMap.Load(file);
lblXDim.Text = string.Format("X Min:{0:0.00} Max:{1:0.00} Step:{2:0.00} Size:{3}", Map.Min.X, Map.Max.X, Map.GridX, Map.SizeX);
lblYDim.Text = string.Format("Y Min:{0:0.00} Max:{1:0.00} Step:{2:0.00} Size:{3}", Map.Min.Y, Map.Max.Y, Map.GridY, Map.SizeY);
NudNewStepWidth.Value = (decimal)Math.Round(Map.GridX, 2);
nUDCutOffZ.Value = (decimal)Math.Round(Map.MinHeight, 2);
if ((Map.GridX > (double)Decimal.MinValue) && (Map.GridX < (double)Decimal.MaxValue))
NudNewStepWidth.Value = (decimal)Math.Round(Map.GridX, 2);
if ((Map.MinHeight > (double)Decimal.MinValue) && (Map.MinHeight < (double)Decimal.MaxValue))
nUDCutOffZ.Value = (decimal)Math.Round(Map.MinHeight, 2);
isMapOk = true;
EnableControls(true);
mapIsLoaded = true;
Expand Down
Loading

0 comments on commit 3b4c5e6

Please sign in to comment.