Browse Source

Fix bug in ProjectionMappingState::onGuiEvent

Mouse releassed event caused crash
master
Krisjanis Rijnieks 9 years ago
parent
commit
f570ce448f
  1. 4
      src/Application/ProjectionMappingState.cpp

4
src/Application/ProjectionMappingState.cpp

@ -348,6 +348,10 @@ void ProjectionMappingState::onGuiEvent(Application * app, GuiEvent & e){
_surfaceScaleBeforeTransform = _surfaceScaleBeforeTransform =
app->getSurfaceManager()->getSelectedSurface()->getScale(); app->getSurfaceManager()->getSelectedSurface()->getScale();
}else if(e.args.type == e.args.Released){ }else if(e.args.type == e.args.Released){
if(app->getSurfaceManager()->getSelectedSurface() == 0){
return;
}
if(_surfaceScaleBeforeTransform != if(_surfaceScaleBeforeTransform !=
app->getSurfaceManager()->getSelectedSurface()->getScale()){ app->getSurfaceManager()->getSelectedSurface()->getScale()){

Loading…
Cancel
Save