diff scripts/plot/uigetfile.m @ 12183:b4d26c65e7e6

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
+++ b/scripts/plot/uigetfile.m
@@ -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");