Browse Source

Fix crashing when hitting tab on no surface selected

master
Krisjanis Rijnieks 9 years ago
parent
commit
83e7865130
  1. 10
      src/Application/ProjectionMappingState.cpp

10
src/Application/ProjectionMappingState.cpp

@ -174,10 +174,12 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar
break; break;
case OF_KEY_TAB: case OF_KEY_TAB:
app->getCmdManager()->exec( if(app->getSurfaceManager()->getSelectedSurface() != 0){
new SetNextSourceCmd( app->getCmdManager()->exec(
app->getSurfaceManager()->getSelectedSurface(), new SetNextSourceCmd(
app->getGui()->getSourcesEditor())); app->getSurfaceManager()->getSelectedSurface(),
app->getGui()->getSourcesEditor()));
}
break; break;
default: default:

Loading…
Cancel
Save