Bladeren bron

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

liujiajie 6 maanden geleden
bovenliggende
commit
c29191fc86

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