summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2001-08-09 07:29:41 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2001-08-09 07:29:41 +0000
commit8634415d0e761d18210e54fb045f7b4af07bf046 (patch)
tree37c857126719e876c63c49d4db5cca2c18986d5c
parenteb4984114ef89078036aa4df08fb3f497fb8f498 (diff)
downloadpango-8634415d0e761d18210e54fb045f7b4af07bf046.tar.gz
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)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-1-07
-rw-r--r--ChangeLog.pre-1-107
-rw-r--r--ChangeLog.pre-1-27
-rw-r--r--ChangeLog.pre-1-47
-rw-r--r--ChangeLog.pre-1-67
-rw-r--r--ChangeLog.pre-1-87
-rw-r--r--pango/pango-layout.c22
8 files changed, 56 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index e8fd708a..dce54dee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 *