Janitor: Fix typo in local variable name

No behavior change is intended here.
This commit is contained in:
Tobias Hunger 2021-06-26 22:13:39 +02:00 committed by Olivier Goffart
parent 6d06827938
commit 68259162c8

View file

@ -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())