Skip to content

Commit

Permalink
fix endless loop when width = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Dec 22, 2023
1 parent 73515c8 commit 78a16b5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ private void RecalculateMagaticXGridLines()

var xOffset = (float)Setting.XOffset;
var width = ViewWidth;
if (width == 0)
return;
var xUnitSpace = (float)Setting.XGridUnitSpace;
var maxDisplayXUnit = Setting.XGridDisplayMaxUnit;

Expand Down

0 comments on commit 78a16b5

Please sign in to comment.