Browse Source

Fix crashing when hitting tab on no surface selected

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

2
src/Application/ProjectionMappingState.cpp

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

Loading…
Cancel
Save