Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
fb050fbf
Commit
fb050fbf
authored
Aug 24, 2016
by
Roland Kluge
Browse files
Bugfix in GraphElementPropertyBasedComparator
parent
e75d82a3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/common/graph/GraphElementPropertyBasedComparator.java
View file @
fb050fbf
/*
* Copyright (c) 2005-2010 KOM Multimedia Communications Lab
* Copyright (c) 2005-2010 KOM
�
Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
...
...
@@ -43,7 +43,7 @@ public class GraphElementPropertyBasedComparator implements Comparator<IElement>
throw
new
IllegalArgumentException
(
String
.
format
(
"Element %s does not have required property %s"
,
o2
,
graphElementProperty
));
return
p1
.
doubleValue
()
==
p2
.
doubleValue
()
?
0
:
p1
.
doubleValue
()
<
p2
.
doubleValue
()
?
-
1
:
0
;
return
p1
.
doubleValue
()
==
p2
.
doubleValue
()
?
0
:
(
p1
.
doubleValue
()
<
p2
.
doubleValue
()
?
-
1
:
1
)
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment