Skip to content

Commit a6e669a

Browse files
committed
Correct zero alpha in case it's present #267
1 parent 058e23d commit a6e669a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/gephi/graph/impl/Serialization.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ private EdgePropertiesImpl deserializeEdgeProperties(final DataInput is) throws
811811

812812
// Gephi versions before 0.11 used zero alpha to indicate that the element has no color
813813
// Override this to avoid hidden elements
814-
if (props.alpha() == 0f) {
814+
if (props.alpha() <= 0f) {
815815
props.setAlpha(1f);
816816
}
817817

@@ -845,7 +845,7 @@ private TextPropertiesImpl deserializeTextProperties(final DataInput is) throws
845845

846846
// Gephi versions before 0.11 used zero alpha to indicate that the element has no color
847847
// Override this to avoid hidden elements
848-
if (props.getAlpha() == 0f) {
848+
if (props.getAlpha() <= 0f) {
849849
props.setAlpha(1f);
850850
}
851851

0 commit comments

Comments
 (0)