summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-06-30 11:15:06 -0800
committerJohn Wiegley <johnw@newartisans.com>2014-06-30 11:15:06 -0800
commit26340138848ae83e04a0fe894639ff5992628129 (patch)
treea60905f50f512552158a705d72650e960e01573e /src
parentadd716f7761c4e60134b847b9257e0b2b563de91 (diff)
parentde17ccf1f470ca36faab50984470f4592164ff5d (diff)
downloadfork-ledger-26340138848ae83e04a0fe894639ff5992628129.tar.gz
fork-ledger-26340138848ae83e04a0fe894639ff5992628129.tar.bz2
fork-ledger-26340138848ae83e04a0fe894639ff5992628129.zip
Merge pull request #306 from maxsatula/status-behavior
Status (cleared/pending/uncleared) processing behavior
Diffstat (limited to 'src')
-rw-r--r--src/textual.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 8f37a566..eea79de0 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1434,8 +1434,7 @@ post_t * instance_t::parse_post(char * line,
}
if (xact &&
- ((xact->_state == item_t::CLEARED && post->_state != item_t::CLEARED) ||
- (xact->_state == item_t::PENDING && post->_state == item_t::UNCLEARED)))
+ (xact->_state != item_t::UNCLEARED && post->_state == item_t::UNCLEARED))
post->set_state(xact->_state);
// Parse the account name