From 31eb4d498be8ca37c37add28e11f6e4ec259ff04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20G=C5=82uchowski?= Date: Tue, 5 Aug 2025 13:11:45 +0200 Subject: [PATCH] Fix multi-line `TextShape` rotation (#7404) * Closes * [X] I have followed the instructions in the PR template I do admit I got a peak NixOS `RequestDeviceError` and deemed it entirely not worth it to think about that. https://github.com/emilk/egui/pull/5411 broke rotation of multi-line `TextShape`s because `PlacedRow::pos` was no longer being rotated, so let's rotate it. --------- Co-authored-by: Emil Ernerfeldt Co-authored-by: Lucas Meurer --- crates/epaint/src/tessellator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/tessellator.rs b/crates/epaint/src/tessellator.rs index 4b1b23ba..4670d0b2 100644 --- a/crates/epaint/src/tessellator.rs +++ b/crates/epaint/src/tessellator.rs @@ -2031,7 +2031,7 @@ impl Tessellator { continue; } - let final_row_pos = galley_pos + row.pos.to_vec2(); + let final_row_pos = galley_pos + rotator * row.pos.to_vec2(); let mut row_rect = row.visuals.mesh_bounds; if *angle != 0.0 {