mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user