Fixed non-functioning -xc: option when -xr: was not also specified

This commit is contained in:
vdvo 2002-05-27 16:07:29 +00:00
parent c36a503c27
commit a80a9680fe
3 changed files with 26 additions and 25 deletions

View File

@ -19,6 +19,7 @@ HEAD
* More code modularization
* Fixed handling of fonts (fixes some segfaults, closes bug 529044)
* Fixed "String Table Error" occurences in some (not all) empty cells
* Fixed non-functioning -xc: option when -xr: was not also specified
* Added some Alpha portability fixes.
0.5 04/13/02

View File

@ -7,6 +7,7 @@
- Modularize code. Separate XLS reading into a library, make a frontend with
various output formats: XML, HTML, CSV...
- Make main_line_processor()'s working buffer grow dynamically
- Improve error reporting and optional debug output
- Notes from Steve Grubb:
- Support String formulas
- Reduce memory footprint

View File

@ -633,6 +633,19 @@ void SetupExtraction(void)
{
ws_array[xp]->first_row = xr1;
ws_array[xp]->biggest_row = xr2;
}
else
{
if (Ascii)
fprintf(stderr, "Error - Row not in range during extraction"
" (%d or %d not in [%ld..%ld])\n", xr1, xr2, (long)ws_array[xp]->first_row, (long)ws_array[xp]->biggest_row);
else
{
printf("Error - Row not in range during extraction.");
output_footer();
}
return;
}
if (xc1 < 0)
{
@ -653,20 +666,6 @@ void SetupExtraction(void)
else
{
printf("Error - Col not in range during extraction.\n");
output_footer();
}
return;
}
}
else
{
if (Ascii)
fprintf(stderr, "Error - Row not in range during extraction"
" (%d or %d not in [%ld..%ld])\n", xr1, xr2, (long)ws_array[xp]->first_row, (long)ws_array[xp]->biggest_row);
else
{
printf("Error - Row not in range during extraction.");
output_footer();
}
return;