|
@@ -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];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|