cc_item_progressbar.cpp: fix attempt to draw box with width=0

Origin commit data
------------------
Commit: 1e5e36b7c8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-28 (Thu, 28 Nov 2013)
This commit is contained in:
[CST] Focus
2013-11-28 15:14:20 +04:00
parent 3bef5be320
commit 92a0da51a1

View File

@@ -149,7 +149,8 @@ void CProgressBar::paintSimple()
{
// progress value
if (pb_active_width != pb_last_width){
paintShapes(pb_x, pb_y, pb_active_width, pb_height, pb_active_col); // active bar
if (pb_active_width)
paintShapes(pb_x, pb_y, pb_active_width, pb_height, pb_active_col); // active bar
paintShapes(pb_start_x_passive, pb_y, pb_passive_width, pb_height, pb_passive_col); // passive bar
}