add: if (toOverXPos > fromOverXPos) {  toOverXPos--; }  
context: qx.Proto._onmouseup = function(evt) {  var columnModel = this.getTableColumnModel();  var paneModel = this.getTablePaneModel();  if (this._resizeColumn != null) {    // We are currently resizing -> Finish resizing    if (! this.getLiveResize()) {      this._hideResizeLine();      columnModel.setColumnWidth(this._resizeColumn, this._lastResizeWidth);    }    this._resizeColumn = null;    this.setCapture(false);    this.getTopLevelWidget().setGlobalCursor(null);  } else if (this._moveColumn != null) {    // We are moving a column -> Drop the column    this._header.hideColumnMoveFeedback();    if (this._lastMoveTargetScroller) {      this._lastMoveTargetScroller.hideColumnMoveFeedback();    }    if (this._lastMoveTargetX != null) {      var fromVisXPos = paneModel.getFirstColumnX() + paneModel.getX(this._moveColumn);      var toVisXPos = this._lastMoveTargetX;      if (toVisXPos != fromVisXPos && toVisXPos != fromVisXPos + 1) {        // The column was really moved to another position        // (and not moved before or after itself, which is a noop)        // Translate visible positions to overall positions        var fromCol = columnModel.getVisibleColumnAtX(fromVisXPos);        var toCol   = columnModel.getVisibleColumnAtX(toVisXPos);        var fromOverXPos = columnModel.getOverallX(fromCol);        var toOverXPos = (toCol != null) ? columnModel.getOverallX(toCol) : columnModel.getOverallColumnCount();        // Move the column        columnModel.moveColumn(fromOverXPos, toOverXPos);      }    }    this._moveColumn = null;    this._lastMoveTargetX = null;    this.setCapture(false);  } else {    // This is a normal mouse up    var row = this._getRowForPagePos(evt.getPageX(), evt.getPageY());    if (row != -1 && row != null) {      this._selectionManager.handleMouseUp(row, evt);    }  }};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/c677ba3f19b1d3edbc202e55ce4b8430bdd64c42/TablePaneScroller.js/clean/qooxdoo/source/script/qx/ui/table/TablePaneScroller.js