Pay attention to tags that turn invisibility off as well as tags that turn

2007-10-26  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible):
        Pay attention to tags that turn invisibility off as well
        as tags that turn invsibility on. (#488051, Mathias Hasselmann)

svn path=/trunk/; revision=18949
This commit is contained in:
Owen Taylor 2007-10-26 14:02:06 +00:00 committed by Owen Taylor
parent 949d340659
commit 00481dd67c
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-10-26 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible):
Pay attention to tags that turn invisibility off as well
as tags that turn invsibility on. (#488051, Mathias Hasselmann)
2007-10-24 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilder.c: Improve gtk_builder_get_type_from_name()

View File

@ -2498,7 +2498,7 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
|| (seg->type == &gtk_text_toggle_off_type))
{
tag = seg->body.toggle.info->tag;
if (tag->invisible_set && tag->values->invisible)
if (tag->invisible_set)
{
tags[tag->priority] = tag;
tagCnts[tag->priority]++;
@ -2522,7 +2522,7 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
|| (seg->type == &gtk_text_toggle_off_type))
{
tag = seg->body.toggle.info->tag;
if (tag->invisible_set && tag->values->invisible)
if (tag->invisible_set)
{
tags[tag->priority] = tag;
tagCnts[tag->priority]++;
@ -2551,7 +2551,7 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
if (summary->toggle_count & 1)
{
tag = summary->info->tag;
if (tag->invisible_set && tag->values->invisible)
if (tag->invisible_set)
{
tags[tag->priority] = tag;
tagCnts[tag->priority] += summary->toggle_count;