File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -5075,11 +5075,7 @@ fn render_old_tree(
50755075 . map ( |adapted_geo| {
50765076 Rectangle :: new (
50775077 adapted_geo. loc + offset,
5078- (
5079- ( original_geo. size . w as f64 * scale) . round ( ) as i32 ,
5080- ( original_geo. size . h as f64 * scale) . round ( ) as i32 ,
5081- )
5082- . into ( ) ,
5078+ ( original_geo. size . to_f64 ( ) * scale) . to_i32_round ( ) ,
50835079 )
50845080 } )
50855081 . unwrap_or ( * original_geo) ;
@@ -5643,11 +5639,7 @@ fn render_new_tree(
56435639 . map ( |adapted_geo| {
56445640 Rectangle :: new (
56455641 adapted_geo. loc + offset,
5646- (
5647- ( original_geo. size . w as f64 * scale) . round ( ) as i32 ,
5648- ( original_geo. size . h as f64 * scale) . round ( ) as i32 ,
5649- )
5650- . into ( ) ,
5642+ ( original_geo. size . to_f64 ( ) * scale) . to_i32_round ( ) ,
56515643 )
56525644 } )
56535645 . unwrap_or ( * original_geo) ,
You can’t perform that action at this time.
0 commit comments