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

List:       kde-commits
Subject:    kdebase/kioslave/thumbnail
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2004-08-26 4:59:57
Message-ID: 20040826045957.0898516B24 () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Don't add a blank line when the line exactly fits the pixmap


  M +3 -2      textcreator.cpp   1.14


--- kdebase/kioslave/thumbnail/textcreator.cpp  #1.13:1.14
@@ -144,6 +144,7 @@ bool TextCreator::create(const QString &
                     {
                         int pos = text.find( '\n', i );
-                        if ( pos > (int) i )
-                        i = pos +1;
+                        if ( pos == -1 )
+                            break;
+                        i = pos + 1;
                     }
 


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

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