Browse Source

optimization: when the canvas is only a single line, we can always

optimize by merging cells
tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 years ago
parent
commit
f4b036ef09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca/codec/export.c

+ 1
- 1
caca/codec/export.c View File

@@ -526,7 +526,7 @@ static void *export_html3(caca_canvas_t const *cv, size_t *bytes)
/* Use colspan option to factor cells with same attributes /* Use colspan option to factor cells with same attributes
* (see below) */ * (see below) */
len = 1; len = 1;
while((y || ! has_multi_cell_row)
while((y || (! has_multi_cell_row) || (cv->height == 1))
&& &&
(x + len < cv->width) (x + len < cv->width)
&& &&


Loading…
Cancel
Save