mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
cc_item_progressbar.cpp: fix attempt to draw box with width=0
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user