File: 04_filters-missing-increment.patch

package info (click to toggle)
ffdiaporama 2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 47,940 kB
  • sloc: cpp: 44,188; xml: 267; sh: 98; ansic: 53; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Add missing loop increment in BlueScanLine function
Author: Rico Tzschichholz <ricotz@ubuntu.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/ffDiaporama_lib/ImageFilters.cpp
+++ b/src/ffDiaporama_lib/ImageFilters.cpp
@@ -836,7 +836,7 @@ void BlurScanLine(float *kernel,int kern
             scale = 0.0;
             k = kernel;
             src = source;
-            for (i=0;i<columns;++k,src+=offset) {
+            for (i=0;i<columns;++k,src+=offset,i++) {
                 if((i >= (x-kern_width/2)) && (i <= (x+kern_width/2))) {
                     aggregate.red  +=(*k)*qRed(*src);
                     aggregate.green+=(*k)*qGreen(*src);