summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-26 17:48:56 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-26 17:48:56 +0000
commit8ebdc30958313c9fccc8b11e2f6aa9e033aab032 (patch)
tree4c910a9d1c88da74397005c799566d3fd492b540
parentccea99c07fda4b1df70b490dcd0117485e267720 (diff)
downloadnetsurf-8ebdc30958313c9fccc8b11e2f6aa9e033aab032.tar.gz
netsurf-8ebdc30958313c9fccc8b11e2f6aa9e033aab032.tar.bz2
[project @ 2006-03-26 17:48:56 by dsilvers]
Argh, it's a length but it's called an offset svn path=/import/netsurf/; revision=2181
-rw-r--r--desktop/history_core.c2
-rw-r--r--gtk/font_pango.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c
index cdfb96e41..04e02d736 100644
--- a/desktop/history_core.c
+++ b/desktop/history_core.c
@@ -451,7 +451,7 @@ bool history_redraw_entry(struct history *history,
strlen(entry->title), WIDTH, &char_offset, &actual_x))
return false;
if (!plot.text(entry->x, entry->y + HEIGHT + 12, &css_base_style,
- entry->title, char_offset + 1, 0xffffff, c))
+ entry->title, char_offset, 0xffffff, c))
return false;
for (child = entry->forward; child; child = child->next) {
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index 763b4c76b..09429fb21 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -103,7 +103,7 @@ bool nsfont_position_in_string(const struct css_style *style,
g_object_unref(context);
pango_font_description_free(desc);
- *char_offset = index;
+ *char_offset = index + 1;
*actual_x = PANGO_PIXELS(pos.x);
return true;