gui/components/cc_item_progressbar.cpp: limit pb_value to max value

This commit is contained in:
[CST] Focus
2014-10-09 11:23:24 +04:00
parent 4b73121eef
commit f75fadd29c

View File

@@ -91,7 +91,7 @@ void CProgressBar::initDimensions()
if (pb_value < 0)
pb_value = 0;
if (pb_value > pb_max_value)
pb_max_value = pb_value;
pb_value = pb_max_value;
//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