# HG changeset patch # User Rik # Date 1346196043 25200 # Node ID fa8f3955e70a759d075c3f4ff64f78274c744147 # Parent 4c0cef65c55fbb9c121d5f6ffd8ab67bbf54c5ab gco.m: Don't create figure if it doesn't already exist (Bug #37211) * gco.m: Don't use gcf() to find current figure because it automatically creates a figure when one doesn't exist. diff -r 4c0cef65c55f -r fa8f3955e70a scripts/plot/gco.m --- a/scripts/plot/gco.m Tue Aug 28 17:12:37 2012 -0600 +++ b/scripts/plot/gco.m Tue Aug 28 16:20:43 2012 -0700 @@ -40,6 +40,6 @@ function h = gco () - h = get (gcf (), "currentobject"); + h = get (get (0, "currentfigure"), "currentobject"); endfunction