Index: trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java	(revision 1883)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java	(revision 1884)
@@ -1,4 +1,6 @@
 // License: GPL. For details, see LICENSE file.
 package org.openstreetmap.josm.gui.dialogs.relation;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.event.ActionEvent;
@@ -25,6 +27,4 @@
 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener;
 
-import static org.openstreetmap.josm.tools.I18n.tr;
-
 public class MemberTable extends JTable implements IMemberModelListener {
 
@@ -39,5 +39,5 @@
     /**
      * constructor
-     * 
+     *
      * @param model
      * @param columnModel
@@ -75,7 +75,7 @@
      * adjusts the width of the columns for the tag name and the tag value to the width of the
      * scroll panes viewport.
-     * 
+     *
      * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected
-     * 
+     *
      * @param scrollPaneWidth the width of the scroll panes viewport
      */
@@ -104,6 +104,6 @@
      * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row
      * when the user leaves the last cell in the table</li> <ul>
-     * 
-     * 
+     *
+     *
      */
     class SelectNextColumnCellAction extends AbstractAction {
@@ -132,5 +132,5 @@
      * Action to be run when the user navigates to the previous cell in the table, for instance by
      * pressing Shift-TAB
-     * 
+     *
      */
     class SelectPreviousColumnCellAction extends AbstractAction {
@@ -143,5 +143,5 @@
             }
 
-            if (col == 0 && row == 0) {
+            if (col <= 0 && row <= 0) {
                 // change nothing
             } else if (row > 0) {
@@ -166,5 +166,5 @@
     /**
      * Replies the popup menu for this table
-     * 
+     *
      * @return the popup menu
      */
Index: trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagTable.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagTable.java	(revision 1883)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagTable.java	(revision 1884)
@@ -35,5 +35,5 @@
 /**
  * This is the tabular editor component for OSM tags.
- * 
+ *
  */
 @SuppressWarnings("serial")
@@ -48,5 +48,5 @@
      * The table has two columns. The first column is used for editing rendering and
      * editing tag keys, the second for rendering and editing tag values.
-     * 
+     *
      */
     static class TagTableColumnModel extends DefaultTableColumnModel {
@@ -83,5 +83,5 @@
      *   last cell in the table</li>
      * <ul>
-     * 
+     *
      * @author gubaer
      *
@@ -132,5 +132,5 @@
 
 
-            if (col == 0 && row == 0) {
+            if (col <= 0 && row <= 0) {
                 // change nothing
             } else if (col == 1) {
@@ -147,20 +147,20 @@
      * Action to be run when the user invokes a delete action on the table, for
      * instance by pressing DEL.
-     * 
+     *
      * Depending on the shape on the current selection the action deletes individual
      * values or entire tags from the model.
-     * 
+     *
      * If the current selection consists of cells in the second column only, the keys of
      * the selected tags are set to the empty string.
-     * 
+     *
      * If the current selection consists of cell in the third column only, the values of the
      * selected tags are set to the empty string.
-     * 
+     *
      *  If the current selection consists of cells in the second and the third column,
      *  the selected tags are removed from the model.
-     * 
+     *
      *  This action listens to the table selection. It becomes enabled when the selection
      *  is non-empty, otherwise it is disabled.
-     * 
+     *
      *
      */
@@ -248,5 +248,5 @@
     /**
      * Action to be run when the user adds a new tag.
-     * 
+     *
      *
      */
@@ -274,5 +274,5 @@
 
     /**
-     * 
+     *
      * @return the delete action used by this table
      */
@@ -326,5 +326,5 @@
     /**
      * constructor
-     * 
+     *
      * @param model
      * @param columnModel
@@ -340,7 +340,7 @@
      * adjusts the width of the columns for the tag name and the tag value
      * to the width of the scroll panes viewport.
-     * 
+     *
      * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected
-     * 
+     *
      * @param scrollPaneWidth the width of the scroll panes viewport
      */
