Fixed image loading on certain ebooks

This commit is contained in:
Marco Gavelli
2018-07-19 00:09:54 +02:00
parent d407c971ee
commit c1733a39fd
2 changed files with 1 additions and 35 deletions

View File

@@ -85,7 +85,7 @@ namespace QuickLook.Plugin.EpubViewer
basePath = System.IO.Path.GetDirectoryName(basePath);
}
string fullPath = String.Concat(basePath.Replace('\\', '/'), '/', relativePath);
return fullPath.Length > 1 ? fullPath.Substring(1) : String.Empty;
return fullPath.StartsWith("/") ? fullPath.Length > 1 ? fullPath.Substring(1) : String.Empty : fullPath;
}
private static async void OnChapterRefChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)