From 27b54874c5cdbbabe99cfe4a219b103aac7e709e Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Jan 18 2019 06:54:11 +0000 Subject: Merge pull request #2469 from manongjohn/fix_vector_replacement_crash Fix vector replacement crash --- diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cpp index 3c23b5e..f4179a9 100644 --- a/toonz/sources/toonz/cellselection.cpp +++ b/toonz/sources/toonz/cellselection.cpp @@ -2632,7 +2632,7 @@ bool TCellSelection::areOnlyVectorCellsSelected() { } TXshSimpleLevel *sourceSl = firstCell.getSimpleLevel(); - if (sourceSl->getType() != PLI_XSHLEVEL) { + if (!sourceSl || sourceSl->getType() != PLI_XSHLEVEL) { DVGui::error(QObject::tr("This command only works on vector cells.")); return false; }