[gnumeric] try to make cppcheck happy
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] try to make cppcheck happy
- Date: Sat, 18 Dec 2010 01:53:04 +0000 (UTC)
commit 26c2c9c0656aafbaa67c96840265d79993195968
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Fri Dec 17 18:52:35 2010 -0700
try to make cppcheck happy
2010-12-17 Andreas J. Guelzow <aguelzow pyrshep ca>
* ms-excel-read.c (excel_read_FONT): try to make cppcheck happy
plugins/excel/ChangeLog | 4 ++++
plugins/excel/ms-excel-read.c | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 8acdb79..b835302 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-17 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * ms-excel-read.c (excel_read_FONT): try to make cppcheck happy
+
2010-12-17 Jean Brefort <jean brefort normalesup org>
* ms-excel-read.c (ms_sheet_realize_obj): make object invisible outline
diff --git a/plugins/excel/ms-excel-read.c b/plugins/excel/ms-excel-read.c
index 529db8f..cc22460 100644
--- a/plugins/excel/ms-excel-read.c
+++ b/plugins/excel/ms-excel-read.c
@@ -1667,11 +1667,13 @@ excel_read_FONT (BiffQuery *q, GnmXLImporter *importer)
fd->index = g_hash_table_size (importer->font_data);
if (fd->index >= 4) /* Weird: for backwards compatibility */
fd->index++;
- g_hash_table_insert (importer->font_data, GINT_TO_POINTER (fd->index), fd);
-
d (1, g_printerr ("Insert font '%s' (%d) size %d pts color %d\n",
fd->fontname, fd->index, fd->height / 20, fd->color_idx););
d (3, g_printerr ("Font color = 0x%x\n", fd->color_idx););
+
+ g_hash_table_insert (importer->font_data,
+ GINT_TO_POINTER (fd->index), fd);
+
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]