From 0279c27280943a823105e99b0801bce12e0677af Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Jul 13 2016 10:07:11 +0000 Subject: Fix crash loading levels (#615) Effects Linux, but may apply to other systems too. --- diff --git a/toonz/sources/toonz/filebrowserpopup.cpp b/toonz/sources/toonz/filebrowserpopup.cpp index 0c9bc67..aa3d47a 100644 --- a/toonz/sources/toonz/filebrowserpopup.cpp +++ b/toonz/sources/toonz/filebrowserpopup.cpp @@ -1246,7 +1246,7 @@ void LoadLevelPopup::updateBottomGUI() { TLevelReaderP lr(fp); TLevelP level; if (lr) level = lr->loadInfo(); - if (!level.getPointer()) return; + if (!level.getPointer() || level->getTable()->size() == 0) return; firstFrame = level->begin()->first; lastFrame = (--level->end())->first;