From fae244b4e3bf1caaefe5690f49d508eb6738d72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gannaz?= Date: Mon, 1 Apr 2019 09:38:37 +0200 Subject: [PATCH] typecast comparison in PictureFlow::showSlide --- common/pictureflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pictureflow.cpp b/common/pictureflow.cpp index 60bb9b8f..b3d4e8cb 100644 --- a/common/pictureflow.cpp +++ b/common/pictureflow.cpp @@ -1261,7 +1261,7 @@ void PictureFlow::showSlide(unsigned int index) { index = qMax(index, 0); index = qMin(slideCount()-1, index); - if(index == d->state->centerSlide.slideIndex) + if((int)index == d->state->centerSlide.slideIndex) return; int distance = centerIndex()-index;