From bd53805271390146f0c0e556cafbcb84d9d6bbc8 Mon Sep 17 00:00:00 2001 From: redpony Date: Tue, 17 Aug 2010 18:45:16 +0000 Subject: fix bug when vest starts with an origin = 0 git-svn-id: https://ws10smt.googlecode.com/svn/trunk@578 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/viterbi_envelope.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vest/viterbi_envelope.h') diff --git a/vest/viterbi_envelope.h b/vest/viterbi_envelope.h index 1689a00e..60ad82d8 100644 --- a/vest/viterbi_envelope.h +++ b/vest/viterbi_envelope.h @@ -54,7 +54,7 @@ struct ViterbiEnvelope { const ViterbiEnvelope& operator+=(const ViterbiEnvelope& other); const ViterbiEnvelope& operator*=(const ViterbiEnvelope& other); bool IsMultiplicativeIdentity() const { - return size() == 1 && (segs[0]->b == 0.0 && segs[0]->m == 0.0) && (!segs[0]->edge); } + return size() == 1 && (segs[0]->b == 0.0 && segs[0]->m == 0.0) && (!segs[0]->edge) && (!segs[0]->p1) && (!segs[0]->p2); } const std::vector >& GetSortedSegs() const { if (!is_sorted) Sort(); return segs; -- cgit v1.2.3