1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Properly handle row repositioning

This commit is contained in:
Hubert Głuchowski
2024-11-29 15:53:50 +01:00
parent f028154da8
commit bc86bec1cb
13 changed files with 209 additions and 191 deletions

View File

@@ -88,8 +88,8 @@ pub fn adjust_colors(
if !galley.is_empty() {
let galley = std::sync::Arc::make_mut(galley);
for (row, _) in &mut galley.rows {
let row = Arc::make_mut(row);
for placed_row in &mut galley.rows {
let row = Arc::make_mut(&mut placed_row.row);
for vertex in &mut row.visuals.mesh.vertices {
adjust_color(&mut vertex.color);
}