Changeset 4566 in josm
- Timestamp:
- 2011-11-02T14:39:27+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r4498 r4566 596 596 @Override 597 597 public int getRowCount() { 598 // Match the size of the opposite table so comparison is less confusing. 599 // (scroll bars lines up properly, etc.) 598 600 int n = 0; 599 601 if (current != null && current.getType().equals(OsmPrimitiveType.RELATION)) { … … 644 646 if (relation == null) 645 647 return null; 646 if (row >= relation.getNumMembers()) 648 if (row >= relation.getNumMembers()) // see getRowCount 647 649 return null; 648 650 return relation.getMembers().get(row); -
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java
r4498 r4566 62 62 } 63 63 64 // Warning: The model pads with null-rows to match the size of the opposite table. 'value' could be null 64 65 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 65 66 int row, int column) { 66 if (value == null)67 return this;68 67 69 68 renderNode((TwoColumnDiff.Item)value, isSelected); -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java
r4072 r4566 92 92 } 93 93 94 // Warning: The model pads with null-rows to match the size of the opposite table. 'value' could be null 94 95 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 95 96 int row, int column) { 96 if (value == null)97 return this;98 97 99 98 HistoryBrowserModel.RelationMemberTableModel model = gteRelationMemberTableModel(table);
Note:
See TracChangeset
for help on using the changeset viewer.