diff --git a/main/src/main/java/drivers/map_viewer/FixtureCellRenderer.java b/main/src/main/java/drivers/map_viewer/FixtureCellRenderer.java index 0003001e5..deed3f9dc 100644 --- a/main/src/main/java/drivers/map_viewer/FixtureCellRenderer.java +++ b/main/src/main/java/drivers/map_viewer/FixtureCellRenderer.java @@ -74,7 +74,7 @@ private static void setComponentPreferredSize(final JComponent component, final view.setSize((float) width, 0.0f); final int wid = (int) Math.ceil(view.getPreferredSpan(View.X_AXIS)); final int height = (int) Math.ceil(view.getPreferredSpan(View.Y_AXIS)); - component.setPreferredSize(new Dimension(wid, height)); // TODO: Use Dimension::new taking doubles instead? + component.setPreferredSize(new Dimension(wid, height)); } private static final Icon DEFAULT_FIXTURE_ICON = createDefaultFixtureIcon();