Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Oct 23, 2023
1 parent 4889533 commit cd7fc19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Typeset/Bridge/typesetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ typesetter_rep::local_end (array<page_item>& prev_l, stack_border& prev_sb) {
static array<rectangle>
requires_update (array<rectangle> log) {
array<rectangle> rs;
for (int i=0; 2*i<N(log); i++) {
rectangle r1= log[i];
rectangle r2= log[i+1];
for (int i=0; 2*i+1<N(log); i++) {
rectangle r1= log[2*i];
rectangle r2= log[2*i+1];
if (r1 == rectangle (0, 0, 0, 0)) rs << r2;
else if (r2 == rectangle (0, 0, 0, 0)) rs << r1;
else if (r1 != r2) rs << r1 << r2;
Expand Down Expand Up @@ -180,7 +180,7 @@ typesetter_rep::typeset (SI& x1b, SI& y1b, SI& x2b, SI& y2b) {
b->position_at (0, 0, change_log);
change_log= requires_update (change_log);
rectangle r (0, 0, 0, 0);
if (N(change_log) == 0) r= least_upper_bound (change_log);
if (N(change_log) != 0) r= least_upper_bound (change_log);
array<brush> new_bgs;
array<rectangle> rs;
b->collect_page_colors (new_bgs, rs);
Expand Down

0 comments on commit cd7fc19

Please sign in to comment.