diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-26 20:37:39 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-28 00:13:12 -0600 |
commit | bce367d60b7d2b66b871120f6d7f944193fe71e4 (patch) | |
tree | 5744afae76874af3766d6678c67f44deb17b8c28 /graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch | |
parent | 114b7c7af8338af42bfce2efde7344c6e3e467b1 (diff) | |
download | slackbuilds-bce367d60b7d2b66b871120f6d7f944193fe71e4.tar.gz |
graphics/dia: Applied patches from upstream.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch')
-rw-r--r-- | graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch b/graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch new file mode 100644 index 0000000000..73694c7d7d --- /dev/null +++ b/graphics/dia/patches/0015-Fix-assumption-that-table-prop_dialog-is-always-vali.patch @@ -0,0 +1,28 @@ +From 8fd585ca493d7d52f2af866cd9ce6e064da6bf15 Mon Sep 17 00:00:00 2001 +From: Hans Breuer <hans@breuer.org> +Date: Fri, 16 Aug 2013 13:33:42 +0200 +Subject: [PATCH 15/24] Fix assumption that table->prop_dialog is always valid + +Not sure how I made it crash, but this extra safety measure +should not hurt in any case. +--- + objects/Database/table_dialog.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/objects/Database/table_dialog.c b/objects/Database/table_dialog.c +index 038f8de..a17cead 100644 +--- a/objects/Database/table_dialog.c ++++ b/objects/Database/table_dialog.c +@@ -269,7 +269,8 @@ table_state_set (TableState * state, Table * table) + table_compute_width_height (table); + table_update_positions (table); + +- gtk_list_clear_items (table->prop_dialog->attributes_list, 0, -1); ++ if (table->prop_dialog) ++ gtk_list_clear_items (table->prop_dialog->attributes_list, 0, -1); + } + + static void +-- +1.8.4.4 + |