Prevent crash when attempting to move marker on empty trace

This commit is contained in:
Jan Käberich 2021-11-13 19:48:03 +01:00
parent e3ce765e64
commit 1bf0e45f7c
2 changed files with 11 additions and 1 deletions

View file

@ -1560,6 +1560,9 @@ bool Marker::isMovable()
// helper traces are never movable by the user
return false;
}
if(trace()->size() == 0) {
return false;
}
switch(type) {
case Type::Manual:
case Type::Delta: