Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Patch fixes for copysource bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jan 20, 2012
1 parent 4c60ef8 commit 85d3992
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -469,7 +469,6 @@ public void onTransMemoryCopy(TransMemoryCopyEvent event)
public void onCopySource(CopySourceEvent event)
{
int row = getRow(event.getTransUnit().getId());

tableModelHandler.gotoRow(row, true);
display.getTargetCellEditor().setText(event.getTransUnit().getSource());
display.getTargetCellEditor().autoSize();
Expand Down Expand Up @@ -510,7 +509,7 @@ public Integer getRow(TransUnitId transUnitId)
{
for (TransUnit transUnit : display.getRowValues())
{
if (transUnitId.equals(transUnit.getId()))
if (transUnitId == transUnit.getId())
{
return transUnit.getRowIndex();
}
Expand Down Expand Up @@ -569,8 +568,6 @@ else if (caught instanceof AuthorizationError)
display.stopProcessing();
}
});


}

@Override
Expand Down

0 comments on commit 85d3992

Please sign in to comment.