diff scripts/plot/uigetfile.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 b0084095098e
children 33bbae85769a
line wrap: on
line diff
--- a/scripts/plot/uigetfile.m	Thu Jan 27 06:37:52 2011 -0500
+++ b/scripts/plot/uigetfile.m	Thu Jan 27 17:58:19 2011 +0100
@@ -150,7 +150,7 @@
     error ("uigetfile: number of input arguments must be less than eight");
   endif
 
-  if (any (cellfun(@(x)strcmp (x, "fltk"), available_graphics_toolkits ())))
+  if (exist("__fltk_uigetfile__") == 3)
     [retfile, retpath, retindex] = __fltk_uigetfile__ (outargs{:});
   else
     error ("uigetfile: fltk graphics toolkit required");