summaryrefslogtreecommitdiffstats
path: root/macosx/HBFilters.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-03-10 08:45:44 +0100
committerDamiano Galassi <[email protected]>2016-03-10 08:45:44 +0100
commit2730d607c182fc3d4858ea579a74ab96ac923c39 (patch)
treef4e583ec7ef856fc8be87c2b534e66151bd4e777 /macosx/HBFilters.m
parentd59e3c12215a0ce0589069ab0eb8771873b2d2e6 (diff)
MacGui: remove the NSString check for the PictureRotate key because we are sure it's always a string.
Diffstat (limited to 'macosx/HBFilters.m')
-rw-r--r--macosx/HBFilters.m15
1 files changed, 6 insertions, 9 deletions
diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m
index 0ab4e924d..2d7028431 100644
--- a/macosx/HBFilters.m
+++ b/macosx/HBFilters.m
@@ -444,15 +444,12 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification";
// Rotate
NSString *rotate = preset[@"PictureRotate"];
- if ([rotate isKindOfClass:[NSString class]])
- {
- hb_dict_t * hbdict = hb_parse_filter_settings(rotate.UTF8String);
- NSDictionary * dict = [[NSDictionary alloc] initWithHBDict:hbdict];
- hb_value_free(&hbdict);
-
- self.rotate = [dict[@"angle"] intValue];
- self.flip = [dict[@"hflip"] boolValue];
- }
+ hb_dict_t *hbdict = hb_parse_filter_settings(rotate.UTF8String);
+ NSDictionary *dict = [[NSDictionary alloc] initWithHBDict:hbdict];
+ hb_value_free(&hbdict);
+
+ self.rotate = [dict[@"angle"] intValue];
+ self.flip = [dict[@"hflip"] boolValue];
}
self.notificationsEnabled = YES;