diff scripts/plot/uigetdir.m @ 12263:c626741871a0 release-3-4-x

Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
author Kai Habel <kai.habel@gmx.de>
date Thu, 27 Jan 2011 17:58:19 +0100
parents c792872f8942
children 33bbae85769a
line wrap: on
line diff
--- a/scripts/plot/uigetdir.m	Thu Jan 27 06:37:52 2011 -0500
+++ b/scripts/plot/uigetdir.m	Thu Jan 27 17:58:19 2011 +0100
@@ -33,11 +33,11 @@
     print_usage ();
   endif
 
-  if (!ischar(init_path) || !ischar(dialog_name))
+  if (!ischar (init_path) || !ischar (dialog_name))
     error ("uigetdir: INIT_PATH and DIALOG_NAME must be string arguments");
   endif
 
-  if (any (strcmp (available_graphics_toolkits (), "fltk")))
+  if (exist ("__fltk_uigetfile__") == 3)
       if (!isdir (init_path))
         init_path = fileparts (init_path);
       endif