Commit beabec50 authored by Lukas Aspöck's avatar Lukas Aspöck Committed by Dipl.-Ing. Jonas Stienen
Browse files

itaRavenProject: setSourceDirectivity method also supports an empty string...

itaRavenProject: setSourceDirectivity method also supports an empty string (resetting to no directivity)
parent c079bfe3
......@@ -1493,8 +1493,10 @@ classdef itaRavenProject < handle
obj.sourceDirectivity = directivity;
else
obj.sourceDirectivityString = directivity;
obj.sourceDirectivity = textscan(obj.sourceDirectivityString, '%s', 'Delimiter', ',');
obj.sourceDirectivity = obj.sourceDirectivity{1}; % textscan liefert cell array in nochmal einer zelle, diese doppelkapselung wird hier rckgngig gemacht
if ~isempty(directivity)
obj.sourceDirectivity = textscan(obj.sourceDirectivityString, '%s', 'Delimiter', ',');
obj.sourceDirectivity = obj.sourceDirectivity{1}; % textscan liefert cell array in nochmal einer zelle, diese doppelkapselung wird hier rckgngig gemacht
end
end
obj.rpf_ini.SetValues('PrimarySources', 'sourceDirectivity', obj.sourceDirectivityString);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment