[med-svn] [SCM] aghermann branch, master, updated. c0bd21ca8eb529ade7e0c7aad22951a308a8dc8f

Andrei Zavada johnhommer at gmail.com
Wed May 1 00:09:36 UTC 2013


The following commit has been merged in the master branch:
commit 8517e15ee8a5dd1b0e43044f1280b9c41f5885a1
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Fri Apr 26 00:26:42 2013 +0300

    mention embedded annotations in global annotations dialog

diff --git a/src/expdesign/primaries.cc b/src/expdesign/primaries.cc
index c5e478f..695a110 100644
--- a/src/expdesign/primaries.cc
+++ b/src/expdesign/primaries.cc
@@ -448,6 +448,8 @@ get_annotations() const
 			for ( auto &A : AA )
 				ret.emplace_back( F(), h, A);
 		}
+		for ( auto& A : F().annotations() )
+			ret.emplace_back( F(), -1, A);
 	}
 	ret.sort();
 	return ret;
diff --git a/src/expdesign/primaries.hh b/src/expdesign/primaries.hh
index 12861c9..0e18d99 100644
--- a/src/expdesign/primaries.hh
+++ b/src/expdesign/primaries.hh
@@ -154,9 +154,9 @@ class CSubject : public SSubjectId {
 				}
 
 			const char*
-			channel()
+			channel() const
 				{
-					return _source.channel_by_id(_h);
+					return (_h == -1) ? "(embedded)" : _source.channel_by_id(_h);
 				}
 			agh::alg::SSpan<float>
 			page_span( size_t pagesize) const

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list