From f87e113f89b464898ab9bfb69faf5b8a12f9ca10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gannaz?= Date: Mon, 1 Apr 2019 09:53:57 +0200 Subject: [PATCH] fix misleading indentation of YACReaderFlowGL::setCurrentIndex --- common/gl/yacreader_flow_gl.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index 2b8d2997..cabb87c9 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -650,22 +650,21 @@ void YACReaderFlowGL::setCurrentIndex(int pos) if(pos >= images.length() && images.length() > 0) pos = images.length()-1; - startAnimationTimer(); + startAnimationTimer(); - currentSelected = pos; + currentSelected = pos; - config.animationStep *= config.animationSpeedUp; + config.animationStep *= config.animationSpeedUp; - if(config.animationStep > config.animationStepMax){ - config.animationStep = config.animationStepMax; - } + if(config.animationStep > config.animationStepMax){ + config.animationStep = config.animationStepMax; + } - if(viewRotateActive && viewRotate < 1){ - viewRotate += config.viewRotateAdd; - } - - viewRotateActive = 1; + if(viewRotateActive && viewRotate < 1){ + viewRotate += config.viewRotateAdd; + } + viewRotateActive = 1; } void YACReaderFlowGL::updatePositions()