Skip to content
Snippets Groups Projects
Commit 13f52d07 authored by David Gobbi's avatar David Gobbi Committed by Code Review
Browse files

Merge topic 'istyleimagepropertytest-fix' into master

5c1e16d7 Fix logical error in TestInteractorStyleImageProperty.
parents 93c5d8be 5c1e16d7
Branches
Tags
No related merge requests found
......@@ -108,15 +108,14 @@ int TestInteractorStyleImagePropertyInternal(int argc, char *argv[], int sliceOr
//the chain of methods to set the ImageProperty.
style->OnLeftButtonDown();
int retVal = ((style->GetCurrentImageProperty()) ? 1:0);
if (retVal)
if (!style->GetCurrentImageProperty())
{
cerr << "TestInteractorStyleImagePropertyInternal failed with sliceOrder parameter " << sliceOrder << "." << std::endl;
return 1;
}
//retVal is 0 if property not found. Returns 1 on failure, 0 on success.
return !retVal;
// Returns 1 on failure, 0 on success.
return 0;
}
int TestInteractorStyleImageProperty(int argc, char *argv[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment