summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-29 16:25:39 +0000
committerDavid Robillard <d@drobilla.net>2014-08-29 16:25:39 +0000
commitf3993767a6da947325cd33ed7f3958c1a6823bcb (patch)
tree04790958e9c75c6ef5b4af7d4c0488f4525dfe1c
parentb212b16afa79b1687afab3db65f38d6d3793dfd0 (diff)
downloadganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.tar.gz
ganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.tar.bz2
ganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.zip
Fix positioning of embedded widgets during sprung layout.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5455 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--NEWS6
-rw-r--r--src/module.c5
-rw-r--r--wscript2
3 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index adcbcf0..f0cc24f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+ganv (1.4.3) unstable;
+
+ * Fix positioning of embedded widgets during sprung layout.
+
+ -- David Robillard <d@drobilla.net> Fri, 29 Aug 2014 12:23:44 -0400
+
ganv (1.4.2) stable;
* Fix bug where edges would not update when nodes are moved after the canvas
diff --git a/src/module.c b/src/module.c
index d630ec8..85d48aa 100644
--- a/src/module.c
+++ b/src/module.c
@@ -550,6 +550,11 @@ ganv_module_update(GanvItem* item, int flags)
layout(node);
}
+ if (module->impl->embed_item) {
+ // Kick the embedded item to update position if we have moved
+ ganv_item_move(GANV_ITEM(module->impl->embed_item), 0.0, 0.0);
+ }
+
GanvItemClass* item_class = GANV_ITEM_CLASS(parent_class);
item_class->update(item, flags);
diff --git a/wscript b/wscript
index 278f622..a0e6aec 100644
--- a/wscript
+++ b/wscript
@@ -8,7 +8,7 @@ import waflib.extras.autowaf as autowaf
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
-GANV_VERSION = '1.4.2'
+GANV_VERSION = '1.4.3'
GANV_MAJOR_VERSION = '1'
# Mandatory waf variables