mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix warning introduced in last commit
This commit is contained in:
parent
9b8efbf5ad
commit
7f9bb18b9a
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ impl ItemRenderer for GLItemRenderer {
|
|||
TextVerticalAlignment::bottom => max_height - text_size.height,
|
||||
};
|
||||
|
||||
let mut draw_line = |canvas: &mut femtovg::Canvas<_>, to_draw: &str, y: &mut f32| {
|
||||
let draw_line = |canvas: &mut femtovg::Canvas<_>, to_draw: &str, y: &mut f32| {
|
||||
if *y >= 0. {
|
||||
let text_metrics = canvas.measure_text(0., 0., to_draw, paint).unwrap();
|
||||
let translate_x = match horizontal_alignment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue