Skip to content

Commit

Permalink
Fix strictmode failures when using undo/redo
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Jul 9, 2023
1 parent 6192e1a commit cbf6f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PwshPaint/Private/Invoke-Paint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function Open-JsonPainting {
# convert these back by grabbing their "value"
$script:Image = @($null) * $Obj.Count
for($i = 0; $i -lt $script:Image.Count; $i++){
if($Obj[$i].value) {
if("value" -in $Obj[$i].PSObject.Properties) {
$script:Image[$i] = $Obj[$i].value
} else {
$script:Image[$i] = $Obj[$i]
Expand Down
2 changes: 1 addition & 1 deletion PwshPaint/PwshPaint.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ModuleVersion = '1.0.4'
ModuleVersion = '1.0.5'
GUID = '32c58857-b36b-4d16-845d-fd72f34dfd72'
Author = 'Shaun Lawrie'
CompanyName = 'Shaun Lawrie'
Expand Down

0 comments on commit cbf6f99

Please sign in to comment.