[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/konsole/konsole
From:       Robert Knight <robertknight () gmail ! com>
Date:       2007-01-26 8:59:59
Message-ID: 1169801999.812212.27449.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 627342 by knight:

A better fix for bug #139225

 M  +6 -3      session.cpp  


--- branches/KDE/3.5/kdebase/konsole/konsole/session.cpp #627341:627342
@@ -282,9 +282,12 @@
 
 void TESession::onContentSizeChange(int height, int width)
 {
-  //kdDebug(1211)<<"TESession::onContentSizeChange " << height << " " << width << endl;
-  em->onImageSizeChange( height/font_h, width/font_w );
-  sh->setSize( height/font_h, width/font_w );
+  // ensure that image is at least one line high by one column wide
+  const int columns = QMAX( width/font_w , 1 );
+  const int lines = QMAX( height/font_h , 1 );
+
+  em->onImageSizeChange( lines , columns );
+  sh->setSize( lines , columns );
 }
 
 void TESession::onFontMetricChange(int height, int width)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic