[dia] [layout] update whole diagram after plugin_callback
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [layout] update whole diagram after plugin_callback
- Date: Sun, 16 Sep 2012 18:10:59 +0000 (UTC)
commit 1f168624489ca8799a1cec295c777c18e902ac85
Author: Hans Breuer <hans breuer org>
Date: Fri Sep 14 22:33:55 2012 +0200
[layout] update whole diagram after plugin_callback
app/menus.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/menus.c b/app/menus.c
index 19fac26..1de172d 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -1263,6 +1263,12 @@ plugin_callback (GtkWidget *widget, gpointer data)
if (change != NULL) {
if (ddisp) {
undo_object_change(ddisp->diagram, NULL, change);
+ /*
+ * - can not call object_add_update() w/o object
+ * - could call object_add_updates_list() with the selected objects,
+ * but that would just be an educated guess (layout working on selection)
+ */
+ diagram_add_update_all(ddisp->diagram);
diagram_modified(ddisp->diagram);
diagram_update_extents(ddisp->diagram);
undo_set_transactionpoint(ddisp->diagram->undo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]