1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Fix bug in code transforming TextShape

This commit is contained in:
Emil Ernerfeldt
2025-03-30 16:50:05 +02:00
parent 7824e2ac18
commit 4ee4572f02
3 changed files with 61 additions and 35 deletions

View File

@@ -617,7 +617,9 @@ pub struct FontsAndCache {
impl FontsAndCache {
fn layout_job(&mut self, job: LayoutJob) -> Arc<Galley> {
self.galley_cache.layout(&mut self.fonts, job, true)
let allow_split_paragraphs = true; // Optimization for editing text with many paragraphs.
self.galley_cache
.layout(&mut self.fonts, job, allow_split_paragraphs)
}
}