From 4b36fa08225f9fb5a3bb8ad0a289c58b84989af6 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 28 Jan 2016 16:00:10 +0100 Subject: ProjectionObserver: small change in setType(). --- projectionobserver.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'projectionobserver.cpp') diff --git a/projectionobserver.cpp b/projectionobserver.cpp index 1293128..66c140e 100644 --- a/projectionobserver.cpp +++ b/projectionobserver.cpp @@ -104,11 +104,10 @@ bool ProjectionObserver::setType(int type) if (type != OBSERVER_DIFF_PREVIOUS || m_prevValues.n_elem != 0) { m_type = type; - if (m_cpSelectionEmpty && m_rpSelectionEmpty) { - return emitValuesChanged(); + if (!m_cpSelectionEmpty || !m_rpSelectionEmpty) { + return true; } - - return true; + return emitValuesChanged(); } return false; -- cgit v1.2.3