Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemonaco committed Apr 8, 2020
2 parents ad1c1c8 + 0ddc0b1 commit 00af301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TileShop.WPF/TileShop.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>8.0</LangVersion>
<UseWPF>true</UseWPF>
<AssemblyName>TileShop</AssemblyName>
<Version>0.92</Version>
<Version>0.93</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
6 changes: 3 additions & 3 deletions TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void ImportIndexed(string fileName)
fail =>
{
CanImport = false;
ImageFileName = string.Empty;
ImageFileName = fileName;
ImportedSource = null;
ImportError = fail.Reason;
});
Expand All @@ -150,9 +150,9 @@ private void ImportIndexed(string fileName)

public void ConfirmImport()
{
if (IsTiledArranger)
if (_arranger.ColorType == PixelColorType.Indexed)
_importedIndexed.SaveImage();
else if (IsSingleArranger)
else if (_arranger.ColorType == PixelColorType.Direct)
_importedDirect.SaveImage();

RequestClose(true);
Expand Down

0 comments on commit 00af301

Please sign in to comment.