From b019d016da8c645fcc581dd170df821c4fec079c Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 20 Jan 2016 12:55:12 +0100 Subject: ProjectionObserver: fixed the diff to prev values. --- projectionobserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'projectionobserver.cpp') diff --git a/projectionobserver.cpp b/projectionobserver.cpp index e500755..262332d 100644 --- a/projectionobserver.cpp +++ b/projectionobserver.cpp @@ -58,7 +58,7 @@ bool ProjectionObserver::setType(int type) void ProjectionObserver::setMap(const arma::mat &Y) { // update previous map - if (m_prevY.n_elem == 0 && m_Y.n_elem > 0) { + if (m_Y.n_elem > 0) { m_prevY = m_Y; m_prevDistY = m_distY; m_prevValues = m_values; -- cgit v1.2.3