mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
undo partly 16444/16452
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16512 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff93befafb
commit
1f83a88cd6
@ -85,18 +85,16 @@ int numberOfLabelHfills(Paragraph const & par, Row const & row)
|
|||||||
|
|
||||||
int numberOfHfills(Paragraph const & par, Row const & row)
|
int numberOfHfills(Paragraph const & par, Row const & row)
|
||||||
{
|
{
|
||||||
pos_type last = row.endpos();
|
pos_type const last = row.endpos();
|
||||||
pos_type first = row.pos();
|
pos_type first = row.pos();
|
||||||
pos_type const par_size = par.size();
|
|
||||||
|
|
||||||
// hfill *DO* count at the beginning of paragraphs!
|
// hfill *DO* count at the beginning of paragraphs!
|
||||||
if (first) {
|
if (first) {
|
||||||
while (first < last && first < par_size && par.isHfill(first))
|
while (first < last && par.isHfill(first))
|
||||||
++first;
|
++first;
|
||||||
}
|
}
|
||||||
|
|
||||||
first = max(first, par.beginOfBody());
|
first = max(first, par.beginOfBody());
|
||||||
last = min(last, par_size);
|
|
||||||
|
|
||||||
int n = 0;
|
int n = 0;
|
||||||
for (pos_type p = first; p < last; ++p) {
|
for (pos_type p = first; p < last; ++p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user