summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-20 19:24:29 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-20 19:24:29 +0000
commit315329ae29372354fa9caf4515246551a33fefdc (patch)
tree2cc618739611fa628044529a242354296198aa4d
parentc502d7c3f7d60d335680ee283b6215ebd2cb1192 (diff)
downloadhalibut-315329ae29372354fa9caf4515246551a33fefdc.zip
halibut-315329ae29372354fa9caf4515246551a33fefdc.tar.gz
halibut-315329ae29372354fa9caf4515246551a33fefdc.tar.bz2
halibut-315329ae29372354fa9caf4515246551a33fefdc.tar.xz
Acroread's PDF cut and paste appears to depend on the order in which
text fragments appear in the page graphics stream. Therefore, I should take care to display the leaders _before_ the page number in each contents entry. [originally from svn r4105]
-rw-r--r--bk_paper.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bk_paper.c b/bk_paper.c
index 81050cb..a9f6f24 100644
--- a/bk_paper.c
+++ b/bk_paper.c
@@ -2004,13 +2004,6 @@ static void render_para(para_data *pdata, paper_conf *conf,
wid = paper_width_simple(pdata, w);
sfree(w);
- render_string(pdata->last->page,
- pdata->fonts[FONT_NORMAL],
- pdata->sizes[FONT_NORMAL],
- conf->paper_width - conf->right_margin - wid,
- (conf->paper_height - conf->top_margin -
- pdata->last->ypos), num);
-
for (x = 0; x < conf->base_width; x += conf->leader_separation)
if (x - conf->leader_separation > last_x - conf->left_margin &&
x + conf->leader_separation < conf->base_width - wid)
@@ -2020,6 +2013,13 @@ static void render_para(para_data *pdata, paper_conf *conf,
conf->left_margin + x,
(conf->paper_height - conf->top_margin -
pdata->last->ypos), L".");
+
+ render_string(pdata->last->page,
+ pdata->fonts[FONT_NORMAL],
+ pdata->sizes[FONT_NORMAL],
+ conf->paper_width - conf->right_margin - wid,
+ (conf->paper_height - conf->top_margin -
+ pdata->last->ypos), num);
}
/*