diff options
-rw-r--r-- | macosx/HBFilters.m | 15 |
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; |