Changeset 27223 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-12-12T20:04:04+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r27219 r27223 159 159 stackCol.remove(idx); 160 160 } 161 if ((stackIdx >= stackCol.size()) && (stackIdx !=0))161 if ((stackIdx >= stackCol.size()) && (stackIdx > 0)) 162 162 stackIdx = stackCol.size() - 1; 163 if (stackIdx < 0) 164 stackIdx = 0; 163 165 if (stackCol.size() == 0) { 164 166 stack.repaint(); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSectors.java
r27219 r27223 279 279 dlg.panelMain.mark.addLight(idx); 280 280 table.setSize(860, ((table.getRowCount() * 16) + 18)); 281 syncPanel(); 281 if (table.getRowCount() > 3) { 282 setSize(900, ((table.getRowCount() * 16) + 40)); 283 } else { 284 setSize(900, 100); 285 } 282 286 } 283 287 … … 286 290 dlg.panelMain.mark.delLight(idx); 287 291 table.setSize(860, ((table.getRowCount() * 16) + 20)); 288 syncPanel(); 292 if (table.getRowCount() > 3) { 293 setSize(900, ((table.getRowCount() * 16) + 40)); 294 } else { 295 setSize(900, 100); 296 } 289 297 } 290 298 } 291 299 292 300 public void syncPanel() { 301 table.updateUI(); 302 table.setSize(860, ((table.getRowCount() * 16) + 18)); 293 303 if (table.getRowCount() > 3) { 294 304 setSize(900, ((table.getRowCount() * 16) + 40)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27219 r27223 422 422 423 423 public void setObjColour(int i, Col col) { 424 if (bodyColour.size() > i)424 if (i < bodyColour.size()) 425 425 bodyColour.set(i, col); 426 426 repaint();
Note:
See TracChangeset
for help on using the changeset viewer.