Skip to content

Commit 5bc09e8

Browse files
akoch-yattaptziegler
authored andcommitted
Remove unnecessary getFigure call in RulerViewport
This commit simplifies a translateToRelative call as the call to getFigure will return the RulerViewport itself.
1 parent 0e597b8 commit 5bc09e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.gef/src/org/eclipse/gef/internal/ui/rulers/RulerRootEditPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public void setContents(IFigure figure) {
250250
@Override
251251
public Point getViewLocation() {
252252
Point viewLocation = new Point(getHorizontalRangeModel().getValue(), getVerticalRangeModel().getValue());
253-
getFigure().translateToRelative(viewLocation);
253+
translateToRelative(viewLocation);
254254
return viewLocation;
255255
}
256256

0 commit comments

Comments
 (0)