From f6ecca70c6e3387650cb688c91ca9267f572b87c Mon Sep 17 00:00:00 2001
From: Jacques Grelet <Jacques.grelet@ird.fr>
Date: Mon, 7 Jan 2019 15:29:37 +0100
Subject: [PATCH] remove toolbar debug state

---
 tsgqc.m | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tsgqc.m b/tsgqc.m
index 0a51786..f27e320 100644
--- a/tsgqc.m
+++ b/tsgqc.m
@@ -4149,15 +4149,15 @@ end
   end
 
 % enable toolbar on map figure from menu
-% ------------------------------------
+% see Reverting axes controls in figure toolbar under:
+% https://undocumentedmatlab.com/blog/reverting-axes-controls-in-figure-toolbar
+% and Matlab Central:
+% https://fr.mathworks.com/matlabcentral/answers/419036-what-happened-to-the-figure-toolbar-in-r2018b-why-is-it-an-axes-toolbar-how-can-i-put-the-buttons
+% --------------------------------------------------------------------
   function mapToolBarCallback(src, evnt)
-    get(hMapFig, 'toolbar')
+ 
     if( strcmp(get(hMapFig, 'toolbar'), 'none'))
       set(hMapFig, 'toolbar', 'figure');
-      % see Reverting axes controls in figure toolbar under:
-      % https://undocumentedmatlab.com/blog/reverting-axes-controls-in-figure-toolbar
-      % and Matlab Central:
-      % https://fr.mathworks.com/matlabcentral/answers/419036-what-happened-to-the-figure-toolbar-in-r2018b-why-is-it-an-axes-toolbar-how-can-i-put-the-buttons
       if ~verLessThan('matlab','9.5')
         addToolbarExplorationButtons(hMapFig);
       end
-- 
GitLab