mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Janitor: Fix typo in local variable name
No behavior change is intended here.
This commit is contained in:
parent
6d06827938
commit
68259162c8
1 changed files with 4 additions and 4 deletions
|
@ -268,17 +268,17 @@ impl Font {
|
|||
break;
|
||||
}
|
||||
let index = start + index;
|
||||
let mesure =
|
||||
let measure =
|
||||
self.text_context.measure_text(0., 0., &text[start..index], paint).unwrap();
|
||||
start = index;
|
||||
lines += 1;
|
||||
width = mesure.width().max(width);
|
||||
width = measure.width().max(width);
|
||||
}
|
||||
} else {
|
||||
for line in text.lines() {
|
||||
let mesure = self.text_context.measure_text(0., 0., line, paint).unwrap();
|
||||
let measure = self.text_context.measure_text(0., 0., line, paint).unwrap();
|
||||
lines += 1;
|
||||
width = mesure.width().max(width);
|
||||
width = measure.width().max(width);
|
||||
}
|
||||
}
|
||||
euclid::size2(width, lines as f32 * font_metrics.height())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue