Changeset 17829 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-04-26T21:01:55+02:00 (3 years ago)
Author:
simon04
Message:

fix #20792 - Tagging preset: columns in checkgroup not fully respected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/CheckGroup.java

    r17609 r17829  
    77import java.util.Map;
    88
     9import javax.swing.JLabel;
    910import javax.swing.JPanel;
    1011
     
    3536        JPanel panel = new JPanel(new GridLayout(rows, columns));
    3637
     38        int i = 0;
    3739        for (Check check : checks) {
    3840            check.addToPanel(panel, support);
     41            i++;
     42        }
     43        for (; i < rows * columns; i++) {
     44            // fill remaining cells, see #20792
     45            panel.add(new JLabel());
    3946        }
    4047
Note: See TracChangeset for help on using the changeset viewer.