diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-12-08 20:39:24 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-08 20:39:24 +0100 |
| commit | 4321b4bc1f70ba85c683dac09fc2dc90af1da1f3 (patch) | |
| tree | a7824350ec65a293b5ea37459c261143029fd11f /src/text | |
| parent | feat(examples): QOL changes (diff) | |
| download | iced_selection-4321b4bc1f70ba85c683dac09fc2dc90af1da1f3.tar.gz | |
chore: update as necessary for upstream iced changes
Diffstat (limited to '')
| -rw-r--r-- | src/text.rs | 4 | ||||
| -rw-r--r-- | src/text/rich.rs | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/text.rs b/src/text.rs index ff5d5a4..e106919 100644 --- a/src/text.rs +++ b/src/text.rs @@ -636,8 +636,8 @@ where let bounds = layout.bounds(); let (rows, mut start, mut end) = state.selection_end_points(); - start = start + core::Vector::new(bounds.x, bounds.y); - end = end + core::Vector::new(bounds.x, bounds.y); + start += core::Vector::new(bounds.x, bounds.y); + end += core::Vector::new(bounds.x, bounds.y); let line_height = self .format diff --git a/src/text/rich.rs b/src/text/rich.rs index 4a7549f..4c6319b 100644 --- a/src/text/rich.rs +++ b/src/text/rich.rs @@ -446,10 +446,7 @@ where span.padding.top, ), bounds.size() - + Size::new( - span.padding.x(), - span.padding.y(), - ), + + Size::new(span.padding.x(), span.padding.y()), ); renderer.fill_quad( @@ -524,8 +521,8 @@ where let bounds = layout.bounds(); let (rows, mut start, mut end) = state.selection_end_points(); - start = start + core::Vector::new(bounds.x, bounds.y); - end = end + core::Vector::new(bounds.x, bounds.y); + start += core::Vector::new(bounds.x, bounds.y); + end += core::Vector::new(bounds.x, bounds.y); let line_height = self .line_height |
