Commit f60b858b authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

nice fix

parent ceadfe90
......@@ -22,7 +22,8 @@ public:
SampleID() {}
SampleID(int level, int number, bool coarse, const std::string &name = "U") :
fLevel(level), cLevel(level - 1), number(number), coarse(coarse), name(name) {}
fLevel(level), cLevel( (level > 0) ? (level - 1) : 0),
number(number), coarse(coarse), name(name) {}
int level() const {
if (coarse) return cLevel;
......
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