Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Christophe Fillion-Robin
VTK
Commits
13f52d07
Commit
13f52d07
authored
12 years ago
by
David Gobbi
Committed by
Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge topic 'istyleimagepropertytest-fix' into master
5c1e16d7
Fix logical error in TestInteractorStyleImageProperty.
parents
93c5d8be
5c1e16d7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rendering/OpenGL/Testing/Cxx/TestInteractorStyleImageProperty.cxx
+4
-5
4 additions, 5 deletions
...g/OpenGL/Testing/Cxx/TestInteractorStyleImageProperty.cxx
with
4 additions
and
5 deletions
Rendering/OpenGL/Testing/Cxx/TestInteractorStyleImageProperty.cxx
+
4
−
5
View file @
13f52d07
...
...
@@ -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
[])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment