buttons.cpp:fix to workaround for to small screen

Origin commit data
------------------
Commit: c4c5e6cd4c
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-05-02 (Wed, 02 May 2012)
This commit is contained in:
Jacek Jendrzej
2012-05-02 18:31:20 +02:00
parent edd2a51851
commit 456f3b63f7

View File

@@ -132,7 +132,7 @@ int paintButtons( const int &x,
//workaround for to small screen (1)
int skip_last_button_txt = false;
if((w_footer > 0 && w_button*cnt) >(uint) w_footer){
if( (w_footer > 0) && ( (w_button*cnt) > (uint) w_footer) ){
w_button= ((w_footer+w_max_icon)/(cnt));
skip_last_button_txt = true;
}