Skip to content

Commit

Permalink
Fix loading CMYK from persisted state
Browse files Browse the repository at this point in the history
  • Loading branch information
simshaun committed Sep 12, 2023
1 parent 681daaf commit 34c9ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PixelPalette/PixelPalette.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.4.6</Version>
<Version>1.4.8</Version>
<Authors>Shaun</Authors>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion PixelPalette/State/GlobalState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void LoadFromPersistedData(PersistedData data)
var hex = Color.Hex.FromString(data.ActiveColorValue ?? string.Empty);
if (hex.HasValue) RefreshFromHex(hex.Value);
break;
case "Cmy":
case "Cmyk":
var cmyk = Color.Cmyk.FromString(data.ActiveColorValue ?? string.Empty);
if (cmyk.HasValue) RefreshFromCmyk(cmyk.Value);
break;
Expand Down

0 comments on commit 34c9ee3

Please sign in to comment.