소스 검색

【阅读页】选中页面图章注释,右键菜单,旋转,文案和实际效果是反的

liujiajie 6 달 전
부모
커밋
c29191fc86
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

+ 6 - 6
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

@@ -678,10 +678,10 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
             {
             {
                 subMenu = [[NSMenu alloc]init];
                 subMenu = [[NSMenu alloc]init];
                 
                 
-                NSMenuItem * rightItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Rotate Right", @"PDFListView") action:@selector(rotateRightStampAnnotation:) keyEquivalent:@""];
                 NSMenuItem * leftItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Rotate Left", @"PDFListView") action:@selector(rotateLeftStampAnnotation:) keyEquivalent:@""];
                 NSMenuItem * leftItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Rotate Left", @"PDFListView") action:@selector(rotateLeftStampAnnotation:) keyEquivalent:@""];
-                [subMenu addItem:rightItem];
+                NSMenuItem * rightItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Rotate Right", @"PDFListView") action:@selector(rotateRightStampAnnotation:) keyEquivalent:@""];
                 [subMenu addItem:leftItem];
                 [subMenu addItem:leftItem];
+                [subMenu addItem:rightItem];
                 rotateItem.submenu = subMenu;
                 rotateItem.submenu = subMenu;
             }
             }
             
             
@@ -829,9 +829,9 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
     if ([self.activeAnnotation isKindOfClass:[CPDFListStampAnnotation class]]) {
     if ([self.activeAnnotation isKindOfClass:[CPDFListStampAnnotation class]]) {
         CPDFListStampAnnotation *anno = (CPDFListStampAnnotation *)self.activeAnnotation;
         CPDFListStampAnnotation *anno = (CPDFListStampAnnotation *)self.activeAnnotation;
         if (anno.pImage != nil) {
         if (anno.pImage != nil) {
-            [self rotateImageStampAnnotation:anno rotateAngle:-90];
+            [self rotateImageStampAnnotation:anno rotateAngle:90];
         } else {
         } else {
-            [self rotateLeftForStampAnnotation:self.activeAnnotation];
+            [self rotateRightForStampAnnotation:self.activeAnnotation];
         }
         }
     }
     }
 }
 }
@@ -840,9 +840,9 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
     if ([self.activeAnnotation isKindOfClass:[CPDFListStampAnnotation class]]) {
     if ([self.activeAnnotation isKindOfClass:[CPDFListStampAnnotation class]]) {
         CPDFListStampAnnotation *anno = (CPDFListStampAnnotation *)self.activeAnnotation;
         CPDFListStampAnnotation *anno = (CPDFListStampAnnotation *)self.activeAnnotation;
         if (anno.pImage != nil) {
         if (anno.pImage != nil) {
-            [self rotateImageStampAnnotation:anno rotateAngle:90];
+            [self rotateImageStampAnnotation:anno rotateAngle:-90];
         } else {
         } else {
-            [self rotateRightForStampAnnotation:self.activeAnnotation];
+            [self rotateLeftForStampAnnotation:self.activeAnnotation];
         }
         }
     }
     }
 }
 }