Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix crash on level strip arrow key presses (#1027)

Jeremy Bullocka04781f1dbf2
diff --git a/toonz/sources/toonz/filmstrip.cpp b/toonz/sources/toonz/filmstrip.cpp
index ec00be47b..52890a3fe 100644
--- a/toonz/sources/toonz/filmstrip.cpp
+++ b/toonz/sources/toonz/filmstrip.cpp
@@ -875,7 +875,7 @@ void FilmstripFrames::keyPressEvent(QKeyEvent *event) {
return;
m_selection->selectNone();
- m_selection->select(fh->getFid());
+ if (getLevel()) m_selection->select(fh->getFid());
int index = fid2index(fh->getFid());
if (index >= 0) exponeFrame(index);
}