Merge pull request #2469 from manongjohn/fix_vector_replacement_crash
Fix vector replacement crash
This commit is contained in:
commit
27b54874c5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue