ソースを参照

【综合】问题修正

Signed-off-by: niehaoyu <niehaoyu@kdanmobile.com>
niehaoyu 1 年間 前
コミット
7e8ae4ac53

+ 1 - 1
PDF Office/PDF Office/Class/PDFWindowController/Side/LeftSide/Thumbnail/KMThumbnailViewController.swift

@@ -394,7 +394,7 @@ class KMThumbnailViewController: NSViewController {
     
     
     @IBAction func rotatePageItemAction(menu:NSMenuItem) {
-        let indexs = self.thumbnailView.collectionView as! IndexSet
+        let indexs = self.thumbnailView.collectionView.selectionIndexes
         if indexs.count >= 0 {
             let newDocument = self.thumbnailView.document
             for index in indexs {