Fixed minor problem with color-bar and JM_REQSIZE message.

This commit is contained in:
David Capello 2010-03-28 16:48:34 -03:00
parent 67c678a690
commit 145a78ac09

View File

@ -244,7 +244,7 @@ bool ColorBar::msg_proc(JMessage msg)
if (get_config_bool("ColorBar", "CanGrow", false))
msg->reqsize.w = 20*jguiscale() * m_columns;
else
msg->reqsize.w = 20*jguiscale() * MAX(1, m_columns);
msg->reqsize.w = 20*jguiscale() * MIN(2, m_columns);
msg->reqsize.h = 20*jguiscale();
return true;