From fd7de26993a0e3d11544b2146a58ec1e525db5ad Mon Sep 17 00:00:00 2001 From: Ingo Date: Sat, 28 Feb 2015 19:03:43 +0100 Subject: [PATCH] Bugfix for myfile.h, Issue 1303 #11, thanks to drougge --- rtengine/myfile.h | 2 +- rtengine/simpleprocess.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/myfile.h b/rtengine/myfile.h index 98a269974..8870c66a8 100755 --- a/rtengine/myfile.h +++ b/rtengine/myfile.h @@ -64,7 +64,7 @@ inline void fseek (IMFILE* f, int p, int how) { else if (how==SEEK_CUR) f->pos += p; else if (how==SEEK_END) - f->pos = f->size-p; + f->pos = f->size+p; if (f->pos < 0 || f->pos> f->size) f->pos = fpos; diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index 84b4877cf..c9ca9c225 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -467,7 +467,7 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p } - printf("SIMPL cha=%f red=%f bl=%f \n",chM,maxr,maxb); +// printf("SIMPL cha=%f red=%f bl=%f \n",chM,maxr,maxb); params.dirpyrDenoise.chroma=chM/(autoNR*multip*adjustr); params.dirpyrDenoise.redchro=maxr;