From 85632acb1065cd1e0301bb45cc29520cfd084264 Mon Sep 17 00:00:00 2001
From: Abdulrahman Elgendy <elgendya@mcmaster.ca>
Date: Tue, 16 Jul 2019 13:47:01 -0400
Subject: [PATCH] Fixed bug that would cause the delete buttons to be
 unfunctional

---
 @RGrid/delete_g1s.m | 2 +-
 @RGrid/delete_g2s.m | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/@RGrid/delete_g1s.m b/@RGrid/delete_g1s.m
index 2c5258b..f6501da 100644
--- a/@RGrid/delete_g1s.m
+++ b/@RGrid/delete_g1s.m
@@ -17,7 +17,7 @@ for i=1:size(object.Cells,2)
     end
 end
 if(~isempty(deleted))
-    delete(object.Cells(deleted).result);
+    delete([object.Cells(deleted).result]);
     object.Cells(deleted) = [];
 end
 end
diff --git a/@RGrid/delete_g2s.m b/@RGrid/delete_g2s.m
index cf356c5..4e7c527 100644
--- a/@RGrid/delete_g2s.m
+++ b/@RGrid/delete_g2s.m
@@ -20,7 +20,7 @@ for i=1:size(object.Cells,2)
     end
 end
 if(~isempty(deleted))
-    delete(object.Cells(deleted).result);
+    delete([object.Cells(deleted).result]);
     object.Cells(deleted) = [];
 end
 end
-- 
GitLab