Sanitize ImageDimensions
base class
- Make `width` and `height` private - Drop `getW()` and `getH()` - Clean `PreviewProps`
This commit is contained in:
@@ -113,8 +113,8 @@ void Image8::getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewP
|
||||
|
||||
transform (pp, tran, sx1, sy1, sx2, sy2);
|
||||
|
||||
int imwidth = image->width; // Destination image
|
||||
int imheight = image->height; // Destination image
|
||||
int imwidth = image->getWidth(); // Destination image
|
||||
int imheight = image->getHeight(); // Destination image
|
||||
|
||||
if (((tran & TR_ROT) == TR_R90) || ((tran & TR_ROT) == TR_R270)) {
|
||||
int swap = imwidth;
|
||||
@@ -125,7 +125,7 @@ void Image8::getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewP
|
||||
int maxx = width; // Source image
|
||||
int maxy = height; // Source image
|
||||
int mtran = tran & TR_ROT;
|
||||
int skip = pp.skip;
|
||||
int skip = pp.getSkip();
|
||||
|
||||
//if ((sx1 + skip*imwidth)>maxx) imwidth -- ; // we have a boundary condition that can cause errors
|
||||
|
||||
|
Reference in New Issue
Block a user