Mercurial > octave-nkf
diff src/graphics.cc @ 7847:40b16e04172a
Make backend switching work.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Wed, 27 Feb 2008 14:59:00 +0100 |
parents | 3d60445d3638 |
children | 6bb2bbc2bf45 |
line wrap: on
line diff
--- a/src/graphics.cc Wed Feb 27 11:28:22 2008 +0100 +++ b/src/graphics.cc Wed Feb 27 14:59:00 2008 +0100 @@ -2980,6 +2980,9 @@ next_handle (-1.0 - (rand () + 1.0) / (RAND_MAX + 2.0)) { handle_map[0] = graphics_object (new root_figure ()); + + // Make sure the default backend is registered. + graphics_backend::default_backend (); } graphics_handle