diff --git a/src/selection/html.c b/src/selection/html.c
index 79fe00c..3e6bcc3 100644
--- a/src/selection/html.c
+++ b/src/selection/html.c
@@ -69,7 +69,7 @@ static gchar * get_as_div(v3270 * terminal)
{
lib3270_selection * block = ((lib3270_selection *) element->data);
unsigned int row, col, src = 0;
- unsigned short flags = block->contents[0].flags;
+ unsigned short flags = block->contents[0].attribute.visual;
get_element_colors(terminal,flags,&fgColor,&bgColor);
@@ -91,9 +91,9 @@ static gchar * get_as_div(v3270 * terminal)
{
for(col=0; colbounds.width; col++)
{
- if(flags != block->contents[src].flags)
+ if(flags != block->contents[src].attribute.visual)
{
- flags = block->contents[src].flags;
+ flags = block->contents[src].attribute.visual;
get_element_colors(terminal,flags,&fgColor,&bgColor);
@@ -110,7 +110,7 @@ static gchar * get_as_div(v3270 * terminal)
}
- if(block->contents[src].flags & LIB3270_ATTR_SELECTED && !isspace(block->contents[src].chr))
+ if(block->contents[src].attribute.visual & LIB3270_ATTR_SELECTED && !isspace(block->contents[src].chr))
{
g_string_append_c(string,block->contents[src].chr);
}
@@ -170,7 +170,7 @@ static gchar * get_as_table(v3270 * terminal)
memset(line,' ',width);
for(col=0; colbounds.width; col++)
{
- if(block->contents[src].flags & LIB3270_ATTR_SELECTED)
+ if(block->contents[src].attribute.visual & LIB3270_ATTR_SELECTED)
{
line[block->bounds.col+col] = block->contents[src].chr;
}
diff --git a/src/selection/table.c b/src/selection/table.c
index 607c968..59fa874 100644
--- a/src/selection/table.c
+++ b/src/selection/table.c
@@ -49,7 +49,7 @@ static gboolean hasDataOnColumn(v3270 * terminal, unsigned int col)
for(row = 0; row < block->bounds.height; row++)
{
- if( (block->contents[pos].flags & LIB3270_ATTR_SELECTED) && !isspace(block->contents[pos].chr))
+ if( (block->contents[pos].attribute.visual & LIB3270_ATTR_SELECTED) && !isspace(block->contents[pos].chr))
{
return TRUE;
}
@@ -139,7 +139,7 @@ gchar * v3270_get_copy_as_table(v3270 * terminal, const gchar *delimiter)
memset(line,' ',width);
for(col=0; colbounds.width; col++)
{
- if(block->contents[src].flags & LIB3270_ATTR_SELECTED)
+ if(block->contents[src].attribute.visual & LIB3270_ATTR_SELECTED)
{
line[block->bounds.col+col] = block->contents[src].chr;
}
diff --git a/src/selection/text.c b/src/selection/text.c
index 34e3748..115211c 100644
--- a/src/selection/text.c
+++ b/src/selection/text.c
@@ -47,7 +47,7 @@ static gchar * get_as_text(v3270 * terminal)
{
for(col=0; colbounds.width; col++)
{
- if(block->contents[src].flags & LIB3270_ATTR_SELECTED)
+ if(block->contents[src].attribute.visual & LIB3270_ATTR_SELECTED)
g_string_append_c(string,block->contents[src].chr);
src++;
--
libgit2 0.21.2