Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 58b7424

Browse files
committed
Clean up center on graph
1 parent 96b9b34 commit 58b7424

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/opengl-commons/src/main/java/org/gephi/viz/engine/util/actions/InputActionsProcessor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ public void processZoomEvent(double zoomQuantity, int x, int y) {
123123
}
124124

125125
public void processCenterOnGraphEvent() {
126-
final GraphIndex index = engine.getLookup().lookup(GraphIndex.class);
127-
final Rect2D visibleGraphBoundaries = index.getGraphBoundaries();
128-
129-
final float[] center = visibleGraphBoundaries.center();
130-
engine.centerOn(new Vector2f(center[0], center[1]), visibleGraphBoundaries.width(), visibleGraphBoundaries.height());
126+
engine.centerOnGraph();
131127
}
132128
}

0 commit comments

Comments
 (0)