From 4df87ca333aabea53b1c5213b190a5e24a7ca8a2 Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Fri, 4 Feb 2022 18:14:44 +0530 Subject: [PATCH] Fix: Set crop position of image as None id not defined in prop file --- src/utils.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 8543d91..d882a65 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -426,10 +426,7 @@ impl ImageProperties { tag_default: &str, tag2_default: &str, ) { - if let Some(v) = props.crop_position { - self.crop_position = Some(v); - } - + self.crop_position = props.crop_position; self.quote = props.quote.unwrap_or("".to_owned()); self.subquote = props.subquote.unwrap_or("".to_owned()); self.subquote2 = props.subquote2.unwrap_or("".to_owned());