diff options
-rw-r--r-- | desktop/history_core.c | 2 | ||||
-rw-r--r-- | gtk/font_pango.c | 2 |
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; |