Sfoglia il codice sorgente

【综合】问题修正

Signed-off-by: niehaoyu <niehaoyu@kdanmobile.com>
niehaoyu 1 anno fa
parent
commit
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 {