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

Origin commit data
------------------
Commit: f75fadd29c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-09 (Thu, 09 Oct 2014)
This commit is contained in:
[CST] Focus
2014-10-09 11:23:24 +04:00
parent beb2b41c2f
commit 2945a56e38

View File

@@ -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