Ignore:
Timestamp:
2011-12-12T20:04:04+01:00 (13 years ago)
Author:
malcolmh
Message:

save

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  
    159159                                stackCol.remove(idx);
    160160                        }
    161                         if ((stackIdx >= stackCol.size()) && (stackIdx != 0))
     161                        if ((stackIdx >= stackCol.size()) && (stackIdx > 0))
    162162                                stackIdx = stackCol.size() - 1;
     163                        if (stackIdx < 0)
     164                                stackIdx = 0;
    163165                        if (stackCol.size() == 0) {
    164166                                stack.repaint();
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSectors.java

    r27219 r27223  
    279279                dlg.panelMain.mark.addLight(idx);
    280280                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                }
    282286        }
    283287
     
    286290                        dlg.panelMain.mark.delLight(idx);
    287291                        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                        }
    289297                }
    290298        }
    291299       
    292300        public void syncPanel() {
     301                table.updateUI();
     302                table.setSize(860, ((table.getRowCount() * 16) + 18));
    293303                if (table.getRowCount() > 3) {
    294304                        setSize(900, ((table.getRowCount() * 16) + 40));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r27219 r27223  
    422422
    423423        public void setObjColour(int i, Col col) {
    424                 if (bodyColour.size() > i)
     424                if (i < bodyColour.size())
    425425                        bodyColour.set(i, col);
    426426                repaint();
Note: See TracChangeset for help on using the changeset viewer.