mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
Fix wrong condition in DataTree
This commit is contained in:
parent
8b0d4c2449
commit
8dfc7503f2
@ -303,7 +303,7 @@ public:
|
||||
template<typename T, typename Dummy = int >
|
||||
void get(T& scalar_out) {
|
||||
|
||||
if (getDataSize() < 0) {
|
||||
if (getDataSize() == 0) {
|
||||
throw DataException("Cannot get() the scalar, DataElement is empty !");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user