Fixed bug rendering joined columns
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 Aug 2009 13:50:23 +0000 (15:50 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 Aug 2009 13:50:23 +0000 (15:50 +0200)
src/output/odt.c

index 31f389fd496e5d5cc8eca6bbeb01b0ab61220cc3..8cc3da9ae72324fc6a38be4cf4e47bedf6d4af1c 100644 (file)
@@ -403,7 +403,6 @@ odt_submit (struct outp_driver *this, struct som_entity *e)
       /* Start row definition */
       xmlTextWriterStartElement (x->content_wtr, _xml("table:table-row"));
 
-
       /* Write all the columns */
       for (c = 0 ; c < tab->nc ; ++c)
        {
@@ -460,8 +459,9 @@ odt_submit (struct outp_driver *this, struct som_entity *e)
            {
              xmlTextWriterStartElement (x->content_wtr, _xml("table:covered-table-cell"));
              xmlTextWriterEndElement (x->content_wtr);
-             spanned_columns --;
            }
+         if ( opts & TAB_JOIN )
+           spanned_columns --;
 
          free (s);
        }