aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-20 12:55:12 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-20 12:55:12 +0100
commitb019d016da8c645fcc581dd170df821c4fec079c (patch)
treebbb389712721acac15bd8e0700de7d8f21c76009
parent5f7064cd55ff01b24d435d2700bd4a4f8a12d273 (diff)
ProjectionObserver: fixed the diff to prev values.
-rw-r--r--projectionobserver.cpp2
1 files changed, 1 insertions, 1 deletions
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;