(#407) Amounts not painted correctly

Added the inactive but selected state to the conditional checks,
which is editing mode or selected rows not highlighted (another window
active while there is a selection in the table).