Merge pull request #2469 from manongjohn/fix_vector_replacement_crash

Fix vector replacement crash
This commit is contained in:
shun-iwasawa 2019-01-18 15:54:11 +09:00 committed by GitHub
commit 27b54874c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}