mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Cleanup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2657 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
8c5b0a3391
commit
8b5326b3df
@ -2023,7 +2023,6 @@ gnucash_sheet_block_set_from_table (GnucashSheet *sheet, gint virt_row,
|
||||
block->style = NULL;
|
||||
}
|
||||
|
||||
|
||||
if (block->style == NULL) {
|
||||
block->style = style;
|
||||
|
||||
@ -2033,18 +2032,20 @@ gnucash_sheet_block_set_from_table (GnucashSheet *sheet, gint virt_row,
|
||||
|
||||
gnucash_style_ref(block->style);
|
||||
|
||||
|
||||
block->entries = g_new0( gchar **, block->style->nrows);
|
||||
block->entries = g_new0( gchar **,
|
||||
block->style->nrows);
|
||||
for (i = 0; i < block->style->nrows; i++)
|
||||
block->entries[i] = g_new0(gchar *,
|
||||
block->style->ncols);
|
||||
|
||||
block->fg_colors = g_new0( GdkColor **, block->style->nrows);
|
||||
block->fg_colors = g_new0( GdkColor **,
|
||||
block->style->nrows);
|
||||
for (i = 0; i < block->style->nrows; i++)
|
||||
block->fg_colors[i] = g_new0(GdkColor *,
|
||||
block->style->ncols);
|
||||
|
||||
block->bg_colors = g_new0( GdkColor **, block->style->nrows);
|
||||
block->bg_colors = g_new0( GdkColor **,
|
||||
block->style->nrows);
|
||||
for (i = 0; i < block->style->nrows; i++)
|
||||
block->bg_colors[i] = g_new0(GdkColor *,
|
||||
block->style->ncols);
|
||||
|
Loading…
Reference in New Issue
Block a user