mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[statistics] Fix use of uninitialized variable
This commit is contained in:
committed by
EmilieNumworks
parent
f449db62c3
commit
d022231a3a
@@ -26,8 +26,12 @@ HistogramParameterController::HistogramParameterController(Responder * parentRes
|
||||
|
||||
void HistogramParameterController::viewWillAppear() {
|
||||
// Initialize temporary parameters to the extracted value.
|
||||
/* setParameterAtIndex uses the value of the other parameter, so we need to
|
||||
* manually set the value of the second parameter before the first call. */
|
||||
double parameterAtIndex1 = extractParameterAtIndex(1);
|
||||
m_tempFirstDrawnBarAbscissa = parameterAtIndex1;
|
||||
setParameterAtIndex(0, extractParameterAtIndex(0));
|
||||
setParameterAtIndex(1, extractParameterAtIndex(1));
|
||||
setParameterAtIndex(1, parameterAtIndex1);
|
||||
FloatParameterController::viewWillAppear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user