From 2f42b0e78385aee282e9833412c70a44fec62169 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sun, 17 May 2015 15:58:14 +0300 Subject: [PATCH] Fix crash after RemoveSurfaceCommand undo call - Surface had to be selected again after putting it back into surfaceManager --- src/Commands/RemoveSurfaceCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Commands/RemoveSurfaceCommand.cpp b/src/Commands/RemoveSurfaceCommand.cpp index 5e2b78c..71e6512 100644 --- a/src/Commands/RemoveSurfaceCommand.cpp +++ b/src/Commands/RemoveSurfaceCommand.cpp @@ -21,6 +21,7 @@ namespace ofx{ ofLogError("RemoveSurfaceCommand", "No surface stored"); } _app->surfaceManager.addSurface(_surface); + _app->surfaceManager.selectSurface(_surface); _surface = 0; }