summaryrefslogtreecommitdiff
path: root/pango
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 /pango
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)
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-attributes.c4
1 files changed, 2 insertions, 2 deletions
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: