1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-23 19:39:06 +00:00

fix last line bug

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@703 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-09-28 04:54:46 +00:00
parent 8a376b08da
commit 58c3dd47ce
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# $Id$
2006-09-28
* Use pkg-config instead of xft-config.
* Fix last line bug which had required padding text with extra blank line
to see text on last line.
2006-09-01
* Fix type-punning and "differ in signedness" warnings seen with
gcc-4.1 -O2.

View File

@ -4990,9 +4990,8 @@ static void update_text_area()
text_width = minimum_width;
text_height = 0;
special_index = 0;
int first_font_height = last_font_height = font_height();
last_font_height = font_height();
for_each_line(text_buffer, text_size_updater);
text_height -= first_font_height;
text_width += 1;
if (text_height < minimum_height)
text_height = minimum_height;