Signed-off-by: niehaoyu <niehaoyu@kdanmobile.com>
@@ -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 {