diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-28 16:00:10 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-28 16:00:10 +0100 |
commit | 4b36fa08225f9fb5a3bb8ad0a289c58b84989af6 (patch) | |
tree | efff3aa1510bd320bb0d7bb4b93b24794b44187e | |
parent | ff10df2f8bfc71afe8637eec67d11d6ce87b673b (diff) |
ProjectionObserver: small change in setType().
-rw-r--r-- | projectionobserver.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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; |