X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Ftable.c;h=e354bb3edfc540a9b920a61e68a3e59fe773d411;hb=000f6ce901178858530c3877d66976973b6a434c;hp=b7afb8f81f24fe4542bedbd6f9e484302de1f3cf;hpb=d3fef25674baf4f4e25502f257c680b5090535c6;p=pspp diff --git a/src/output/table.c b/src/output/table.c index b7afb8f81f..e354bb3edf 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2011, 2014 Free Software Foundation, Inc. + Copyright (C) 2009, 2011, 2014, 2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -356,7 +356,7 @@ static const struct table_class table_nested_class; struct table * table_create_nested (struct table *inner) { - return table_create_nested_item (table_item_create (inner, NULL)); + return table_create_nested_item (table_item_create (inner, NULL, NULL)); } /* Creates and returns a table with a single cell that contains INNER. @@ -367,7 +367,7 @@ table_create_nested_item (struct table_item *inner) struct table_nested *tn = xmalloc (sizeof *tn); table_init (&tn->table, &table_nested_class); tn->table.n[TABLE_HORZ] = tn->table.n[TABLE_VERT] = 1; - tn->inner = table_item_ref (inner); + tn->inner = inner; return &tn->table; }