Don't continue comparing tab stops after we find one that fits.

This commit is contained in:
David Wendt 2020-06-06 18:06:34 -04:00
parent b6c12b1e23
commit 2ad216cab4
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}
}