diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-01-09 02:19:25 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-01-09 02:19:25 +0100 |
commit | 27465a8d49b7404222b44473b82ff3a22ef058de (patch) | |
tree | f619b83f416d1d62a3a592226ac2c4713b111ca3 | |
parent | e21fa53895f1347674467d9221167e92dcc71214 (diff) | |
download | msitools-27465a8d49b7404222b44473b82ff3a22ef058de.tar.gz msitools-27465a8d49b7404222b44473b82ff3a22ef058de.tar.xz msitools-27465a8d49b7404222b44473b82ff3a22ef058de.zip |
Lookup element by compatible type
-rw-r--r-- | src/wix.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wix.vala b/src/wix.vala index 1ae6158..5843e5c 100644 --- a/src/wix.vala +++ b/src/wix.vala @@ -102,13 +102,13 @@ namespace Wixl { var array = a; var type = typeof (G); - if (this.get_type () == type) + if (this.get_type ().is_a (type)) array += this; foreach (var c in children) { if (c is WixElement) array = (c as WixElement).add_elements<G> (array); - else if (c.get_type () == type) + else if (c.get_type ().is_a (type)) array += c; } |