|
@@ -1420,6 +1420,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
if let fileURL = openPanel.urls.first {
|
|
|
// self.choosePositionWindow {[weak self] index in
|
|
|
// /// 插入位置
|
|
|
+ if NSDocument.isDamage(url: fileURL, needAlertIfDamage: true) { // 损坏图片
|
|
|
+ return
|
|
|
+ }
|
|
|
if let imag = NSImage(contentsOfFile: fileURL.path ) {
|
|
|
let index = self.getInsertIndex() + 1
|
|
|
let document = CPDFDocument()
|