summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-01-06 17:40:43 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-01-06 17:40:43 +0000
commit33cc7d97cc98e653f7fe129c1b2c3787bb5bcc9e (patch)
tree94397ed4c6d593fa2377cc89ec4aa6034967972d
parent4442bbc015ec28239bad379710e9e8256b04f37e (diff)
downloadpango-33cc7d97cc98e653f7fe129c1b2c3787bb5bcc9e.tar.gz
Fix reversed test on attr->absolute that was causing pixels sizes to be
Thu Jan 6 12:29:31 2005 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix reversed test on attr->absolute that was causing pixels sizes to be used inappropriately. (#163105, Ross Burton)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-1-107
-rw-r--r--pango/pango-attributes.c4
3 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b666d519..a50e23a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu Jan 6 12:29:31 2005 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix reversed test on attr->absolute that was causing
+ pixels sizes to be used inappropriately. (#163105,
+ Ross Burton)
+
Tue Jan 4 14:14:28 2005 Owen Taylor <otaylor@redhat.com>
* pango/break.c (enum): Fix trailing comma in enum (#162618)
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index b666d519..a50e23a2 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,10 @@
+Thu Jan 6 12:29:31 2005 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix reversed test on attr->absolute that was causing
+ pixels sizes to be used inappropriately. (#163105,
+ Ross Burton)
+
Tue Jan 4 14:14:28 2005 Owen Taylor <otaylor@redhat.com>
* pango/break.c (enum): Fix trailing comma in enum (#162618)
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index ddeb4978..3191c029 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1677,9 +1677,9 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
{
mask |= PANGO_FONT_MASK_SIZE;
if (((PangoAttrSize *)attr)->absolute)
- pango_font_description_set_size (desc, ((PangoAttrSize *)attr)->size);
- else
pango_font_description_set_absolute_size (desc, ((PangoAttrSize *)attr)->size);
+ else
+ pango_font_description_set_size (desc, ((PangoAttrSize *)attr)->size);
}
break;
case PANGO_ATTR_SCALE: