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