Don't continue comparing tab stops after we find one that fits.
This commit is contained in:
parent
b6c12b1e23
commit
2ad216cab4
|
@ -239,6 +239,7 @@ impl<'a, 'gc> LayoutContext<'a, 'gc> {
|
|||
let twips_stop = Twips::from_pixels(*stop);
|
||||
if twips_stop > self.cursor.x() {
|
||||
self.cursor.set_x(twips_stop);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue