diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index 4024ccc..7ca7b29 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -348,6 +348,10 @@ void ProjectionMappingState::onGuiEvent(Application * app, GuiEvent & e){ _surfaceScaleBeforeTransform = app->getSurfaceManager()->getSelectedSurface()->getScale(); }else if(e.args.type == e.args.Released){ + if(app->getSurfaceManager()->getSelectedSurface() == 0){ + return; + } + if(_surfaceScaleBeforeTransform != app->getSurfaceManager()->getSelectedSurface()->getScale()){