|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.IO;
|
|
|
using System.Runtime.Serialization;
|
|
|
using System.Windows.Media.Imaging;
|
|
|
using PixiEditor.Exceptions;
|
|
@@ -47,6 +48,10 @@ namespace PixiEditor.Models.IO
|
|
|
{
|
|
|
throw new CorruptedFileException();
|
|
|
}
|
|
|
+ catch (FileFormatException)
|
|
|
+ {
|
|
|
+ throw new CorruptedFileException();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static Document ImportDocument(string path)
|