aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--projectionobserver.cpp7
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;