From 61a2e25e4fbe9fd560a4f48eea375bfa53193993 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 20 Jan 2017 21:03:29 +0200 Subject: [PATCH] Use SurfaceManager::removeSurface(index) in RmSurfaceCmd --- src/Commands/RmSurfaceCmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/RmSurfaceCmd.cpp b/src/Commands/RmSurfaceCmd.cpp index 9aebca8..2183615 100644 --- a/src/Commands/RmSurfaceCmd.cpp +++ b/src/Commands/RmSurfaceCmd.cpp @@ -14,7 +14,7 @@ void RmSurfaceCmd::exec(){ // removeSelectedSurface does not destroy the surface. // The owner is being changed. _surface = _surfaceManager->getSurface(_surfaceIndex); - _surfaceManager->removeSelectedSurface(); + _surfaceManager->removeSurface(_surfaceIndex); } void RmSurfaceCmd::undo(){