From 218a0863c3967836c45414fcb366c27202497bb9 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 24 May 2018 11:48:42 -0300 Subject: [PATCH] Minor formatting changes --- src/app/ui/timeline/timeline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/ui/timeline/timeline.cpp b/src/app/ui/timeline/timeline.cpp index 1b058f2a2..d3cd16f56 100644 --- a/src/app/ui/timeline/timeline.cpp +++ b/src/app/ui/timeline/timeline.cpp @@ -447,11 +447,11 @@ void Timeline::setFrame(frame_t frame, bool byUser) if (m_layer) { Cel* oldCel = m_layer->cel(m_frame); Cel* newCel = m_layer->cel(frame); - std::size_t oldLinks = oldCel ? oldCel->links(): 0; - std::size_t newLinks = newCel ? newCel->links(): 0; + std::size_t oldLinks = (oldCel ? oldCel->links(): 0); + std::size_t newLinks = (newCel ? newCel->links(): 0); if ((oldLinks && !newCel) || - ( newLinks && !oldCel) || - ((oldLinks>0 || newLinks>0) && (oldCel->data() != newCel->data()))) + (newLinks && !oldCel) || + ((oldLinks || newLinks) && (oldCel->data() != newCel->data()))) invalidateLayer(m_layer); }