diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 7 | ||||
-rw-r--r-- | pango/pango-layout.c | 22 |
8 files changed, 56 insertions, 15 deletions
@@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index e8fd708a..dce54dee 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,10 @@ +2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * pango/pango-layout.c (pango_layout_line_get_empty_extents): + Remove unneeded inc_rect parameter. + (pango_layout_line_get_extents): Treat lines containing only + tabs as empty lines. (#57051) + 2001-08-09 Alexander Larsson <alexl@redhat.com> * pango/pangowin32.h: diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 48e6d103..093da577 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3308,17 +3308,8 @@ pango_layout_line_get_x_ranges (PangoLayoutLine *line, static void pango_layout_line_get_empty_extents (PangoLayoutLine *line, - PangoRectangle *ink_rect, PangoRectangle *logical_rect) { - if (ink_rect) - { - ink_rect->x = 0; - ink_rect->y = 0; - ink_rect->width = 0; - ink_rect->height = 0; - } - if (logical_rect) { char *line_start; @@ -3486,12 +3477,6 @@ pango_layout_line_get_extents (PangoLayoutLine *line, if (!LINE_IS_VALID (line)) return; - if (!line->runs) - { - pango_layout_line_get_empty_extents (line, ink_rect, logical_rect); - return; - } - if (ink_rect) { ink_rect->x = 0; @@ -3549,6 +3534,13 @@ pango_layout_line_get_extents (PangoLayoutLine *line, x_pos += run_logical.width; tmp_list = tmp_list->next; } + + if (logical_rect && logical_rect->height == 0) + { + PangoRectangle temp_rect; + pango_layout_line_get_empty_extents (line, &temp_rect); + logical_rect->height = temp_rect.height; + } } static PangoLayoutLine * |