mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
gui/components/cc_item_progressbar.cpp: limit pb_value to max value
This commit is contained in:
@@ -91,7 +91,7 @@ void CProgressBar::initDimensions()
|
|||||||
if (pb_value < 0)
|
if (pb_value < 0)
|
||||||
pb_value = 0;
|
pb_value = 0;
|
||||||
if (pb_value > pb_max_value)
|
if (pb_value > pb_max_value)
|
||||||
pb_max_value = pb_value;
|
pb_value = pb_max_value;
|
||||||
|
|
||||||
//assign start positions x/y active bar
|
//assign start positions x/y active bar
|
||||||
//NOTE: real values are only reqiured, if we paint active/passive bar with own render methodes or not embedded cc-items
|
//NOTE: real values are only reqiured, if we paint active/passive bar with own render methodes or not embedded cc-items
|
||||||
|
Reference in New Issue
Block a user