summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-06-24 20:28:46 +0200
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-06-24 20:28:46 +0200
commit63d78fbaafa7d247347f9052db86f575d89260b7 (patch)
treeeb097d65aa41e61d2c34541c5d8ff819cc95ab02 /matlab
parent8ad46dc9cb28067047838e06770707cf86ef6e56 (diff)
downloadastra-63d78fbaafa7d247347f9052db86f575d89260b7.tar.gz
astra-63d78fbaafa7d247347f9052db86f575d89260b7.tar.bz2
astra-63d78fbaafa7d247347f9052db86f575d89260b7.tar.xz
astra-63d78fbaafa7d247347f9052db86f575d89260b7.zip
Fix config to struct/dict translation for array options
Diffstat (limited to 'matlab')
-rw-r--r--matlab/mex/mexHelpFunctions.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/matlab/mex/mexHelpFunctions.cpp b/matlab/mex/mexHelpFunctions.cpp
index 87a9672..58e84d2 100644
--- a/matlab/mex/mexHelpFunctions.cpp
+++ b/matlab/mex/mexHelpFunctions.cpp
@@ -336,7 +336,11 @@ mxArray* XMLNodeToStruct(astra::XMLNode node)
// option
if (subnode.getName() == "Option") {
- mOptions[subnode.getAttribute("key")] = stringToMxArray(subnode.getAttribute("value"));
+ if(subnode.hasAttribute("value")){
+ mOptions[subnode.getAttribute("key")] = stringToMxArray(subnode.getAttribute("value"));
+ }else{
+ mOptions[subnode.getAttribute("key")] = stringToMxArray(subnode.getContent());
+ }
}
// regular content