]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect handling of column counts with empty data for FSS Embedded List...
authorKevin Day <Kevin@kevux.org>
Sun, 1 Sep 2024 01:28:31 +0000 (20:28 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 1 Sep 2024 01:28:31 +0000 (20:28 -0500)
level_3/fss_embedded_list_read/c/private-read.c

index 558a2bf9b4ad8384171b526f1df11bf61dbc7b34..97cd259e22b1a03bbf8709493d8c94b7f19a11e8 100644 (file)
@@ -536,9 +536,11 @@ extern "C" {
 
             if (skip[i]) continue;
 
-            fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s);
+            if (items->array[i].content.used && items->array[i].content.array[0].start <= items->array[i].content.array[0].stop || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) {
+              fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s);
 
-            return F_none;
+              return F_none;
+            }
           } // for
         }
 
@@ -707,7 +709,7 @@ extern "C" {
 
         if (skip[i]) continue;
 
-        if (items->array[i].content.used || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) {
+        if (items->array[i].content.used && items->array[i].content.array[0].start <= items->array[i].content.array[0].stop || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) {
           fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s);
 
           return F_none;