From 8166ce463f140bec9e8d7cbdeb2ab802fcf5cffb Mon Sep 17 00:00:00 2001 From: Michael Nottebrock Date: Tue, 5 Jul 2005 20:55:18 +0000 Subject: Update to KOffice 1.4.0a. Note that 'a' does *not* stand for 'alpha', but denotes a short-notice bugfix release made after KOffice 1.4.0. --- editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h (limited to 'editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h') diff --git a/editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h b/editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h new file mode 100644 index 000000000000..9c914acb3d05 --- /dev/null +++ b/editors/koffice-kde3/files/patch-krita-plugins-cimg-CImg.h @@ -0,0 +1,11 @@ +--- krita/plugins/cimg/CImg.h.orig Tue Jun 28 02:31:30 2005 ++++ krita/plugins/cimg/CImg.h Tue Jun 28 02:32:10 2005 +@@ -5135,7 +5135,7 @@ + if (ny1<0 || ny0>=dimy()) return *this; + if (ny0<0) { nx0-=ny0*(nx1-nx0)/(ny1-ny0); ny0=0; } + if (ny1>=dimy()) { nx1+=(ny1-dimy())*(nx0-nx1)/(ny1-ny0); ny1=dimy()-1;} +- const unsigned int dmax = (unsigned int)cimg::max(std::abs(nx1-nx0),ny1-ny0), whz = width*height*depth; ++ const unsigned int dmax = (unsigned int)cimg::max(std::abs((long int)(nx1-nx0)),(long int)(ny1-ny0)), whz = width*height*depth; + const float px = dmax?(nx1-nx0)/(float)dmax:0, py = dmax?(ny1-ny0)/(float)dmax:0; + float x = (float)nx0, y = (float)ny0; + if (opacity>=1) for (unsigned int t=0; t<=dmax; t++) { -- cgit v1.2.3