From 9292b324202d66423785dd9ab389770a2ba62654 Mon Sep 17 00:00:00 2001 From: Lewin Probst <info@emirror.de> Date: Fri, 15 May 2020 17:15:20 +0200 Subject: [PATCH] Bugfix, colorregister failed if more than one empty cell index is available. --- VERSION | 2 +- lib/+artoa/+soundsources/+colorregister/add.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 55596b2..1e38528 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -210 \ No newline at end of file +211 \ No newline at end of file diff --git a/lib/+artoa/+soundsources/+colorregister/add.m b/lib/+artoa/+soundsources/+colorregister/add.m index 09c9ff6..9121167 100644 --- a/lib/+artoa/+soundsources/+colorregister/add.m +++ b/lib/+artoa/+soundsources/+colorregister/add.m @@ -7,7 +7,7 @@ soundsourceLogical = strcmp(register, pSoundsourceName); if ~any(soundsourceLogical) emptyCellIndex = find(strcmp(register, {''})); if ~isempty(emptyCellIndex) - register(emptyCellIndex) = {pSoundsourceName}; + register(emptyCellIndex(1)) = {pSoundsourceName}; colorIndex = emptyCellIndex; return; end -- GitLab