提交 a36d5a42 编写于 作者: W WMJ

-修复添加文件到补丁列表时会出错的问题

上级 7640cfda
...@@ -271,10 +271,9 @@ namespace PDFPatcher.Functions ...@@ -271,10 +271,9 @@ namespace PDFPatcher.Functions
} }
void AddItem(SourceItem item) { void AddItem(SourceItem item) {
if (item == null) { if (item is SourceItem.Pdf) {
return; AddItems(new SourceItem[] { item });
} }
AddItems(new SourceItem[] { item });
} }
void AddItems(System.Collections.ICollection items) { void AddItems(System.Collections.ICollection items) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册