From f75fadd29c10f7aa83daedb383a440b1c396e7bc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 9 Oct 2014 11:23:24 +0400 Subject: [PATCH] gui/components/cc_item_progressbar.cpp: limit pb_value to max value --- src/gui/components/cc_item_progressbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_progressbar.cpp b/src/gui/components/cc_item_progressbar.cpp index 0b948b783..47db76b46 100644 --- a/src/gui/components/cc_item_progressbar.cpp +++ b/src/gui/components/cc_item_progressbar.cpp @@ -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