changeset 12465:6b2abcd20fef

Call size_range early to allow window resizing for MinGW and MacOS
author Kai Habel <kai.habel@gmx.de>
date Mon, 21 Feb 2011 21:02:28 +0100
parents dfeea9cae79e
children 67f98480b181
files src/ChangeLog src/DLD-FUNCTIONS/__init_fltk__.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-21  Kai Habel  <kai.habel@gmx.de>
+
+	* src/DLD-FUNCTIONS/__init_fltk__.cc(plot_window::plot_window):
+	Call size_range early to allow window resizing for MacOS and MinGW.
+
 2011-02-21  John W. Eaton  <jwe@octave.org>
 
 	* DLD-FUNCTIONS/regexp.cc: Assume we have PCRE.
--- a/src/DLD-FUNCTIONS/__init_fltk__.cc
+++ b/src/DLD-FUNCTIONS/__init_fltk__.cc
@@ -640,6 +640,7 @@
       panzoom (0), rotate (0), help (0), status (0)
   {
     callback (window_close, static_cast<void*> (this));
+    size_range (4*status_h, 2*status_h);
 
     begin ();
     {
@@ -741,7 +742,6 @@
 
     set_name ();
     resizable (canvas);
-    size_range (4*status_h, 2*status_h);
     gui_mode = (ndim == 3 ? rotate_zoom : pan_zoom);
     uimenu->add_to_menu (fp);
     if (uimenu->items_to_show ())