From 4000384701f76001f01569fdbf907953a34b96c8 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 18 Oct 2011 06:27:44 +0000
Subject: [PATCH] fix one more initial resize bug

---
 Fltk/graphicWindow.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp
index d292e4472f..8af38557ed 100644
--- a/Fltk/graphicWindow.cpp
+++ b/Fltk/graphicWindow.cpp
@@ -497,6 +497,8 @@ graphicWindow::graphicWindow(bool main, int numTiles)
   int glheight = CTX::instance()->glSize[1];
   int height = glheight + mheight + sh;
 
+  printf("mheight=%d glheight=%d height=%d\n", mheight, glheight, height);
+
   // make sure height < screen height
   if(height > Fl::h()){
     height = Fl::h();
@@ -507,7 +509,7 @@ graphicWindow::graphicWindow(bool main, int numTiles)
   }
 
   // no tile should be zero during tile creation
-  if(CTX::instance()->msgSize <= 0 || CTX::instance()->msgSize >= glheight){
+  if(CTX::instance()->msgSize <= 0){
     mheight = 10;
     glheight = CTX::instance()->glSize[1] - 10;
   }
-- 
GitLab