Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Mar 15, 2015
1 parent 1712a83 commit 569d2d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SeExpr/SeExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,23 +1528,23 @@ SeExprPlugin::changedParam(const OFX::InstanceChangedArgs &args, const std::stri
if (paramName == kDoubleParamNumberParamName) {
int numVisible;
_doubleParamCount->getValue(numVisible);
assert(numVisible < kParamsCount && numVisible >=0);
assert(numVisible <= kParamsCount && numVisible >=0);
for (int i = 0; i < kParamsCount; ++i) {
bool visible = i < numVisible;
_doubleParams[i]->setIsSecret(!visible);
}
} else if (paramName == kDouble2DParamNumberParamName) {
int numVisible;
_double2DParamCount->getValue(numVisible);
assert(numVisible < kParamsCount && numVisible >=0);
assert(numVisible <= kParamsCount && numVisible >=0);
for (int i = 0; i < kParamsCount; ++i) {
bool visible = i < numVisible;
_double2DParams[i]->setIsSecret(!visible);
}
} else if (paramName == kColorParamNumberParamName) {
int numVisible;
_colorParamCount->getValue(numVisible);
assert(numVisible < kParamsCount && numVisible >=0);
assert(numVisible <= kParamsCount && numVisible >=0);
for (int i = 0; i < kParamsCount; ++i) {
bool visible = i < numVisible;
_colorParams[i]->setIsSecret(!visible);
Expand Down

0 comments on commit 569d2d2

Please sign in to comment.