Commit 50c4dba4a464bd2db0c96850ce641f4b76e527ed

Authored by perry.werneck@gmail.com
1 parent b4b905a1
Exists in master and in 1 other branch develop

Corrigindo problema na leitura da tabela de cores

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
widget.c
... ... @@ -1276,7 +1276,13 @@ void v3270_set_color_table(GdkRGBA *table, const gchar *colors)
1276 1276  
1277 1277 trace("colors=[%s]",colors);
1278 1278  
1279   - clr = g_strsplit(colors,",",V3270_COLOR_COUNT+1);
  1279 + if(strchr(colors,':'))
  1280 + clr = g_strsplit(colors,":",V3270_COLOR_COUNT+1);
  1281 + else if(strchr(colors,';'))
  1282 + clr = g_strsplit(colors,";",V3270_COLOR_COUNT+1);
  1283 + else
  1284 + clr = g_strsplit(colors,",",V3270_COLOR_COUNT+1);
  1285 +
1280 1286 cnt = g_strv_length(clr);
1281 1287  
1282 1288 switch(cnt)
... ...