Commit 00481dd6 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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
parent 949d3406
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()
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment