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

This commit is contained in:
[CST] Focus
2013-11-28 15:14:20 +04:00
parent 90c76a2985
commit 1e5e36b7c8

View File

@@ -149,7 +149,8 @@ void CProgressBar::paintSimple()
{ {
// progress value // progress value
if (pb_active_width != pb_last_width){ 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 paintShapes(pb_start_x_passive, pb_y, pb_passive_width, pb_height, pb_passive_col); // passive bar
} }