Skip to content

Commit 0963ce0

Browse files
fix: Turtle.get_PathData allowing zero starts ( Fixes #245 )
1 parent a77a515 commit 0963ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Types/Turtle/get_PathData.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$precision = $this.Precision
3030
filter roundToPrecision { [Math]::Round($_, $precision)}
3131

32-
if ($this.Start.X -and $this.Start.Y) {
32+
if ($null -ne $this.Start.X -and $null -ne $this.Start.Y) {
3333
if ($precision) {
3434
"m $($this.Start.x | roundToPrecision) $($this.Start.y | roundToPrecision)"
3535
} else {

0 commit comments

Comments
 (0)