Pre-extract rotate should not swap width/height #296

This commit is contained in:
Lovell Fuller
2015-11-11 22:34:30 +00:00
parent d7278f022b
commit 58d9e0fef7
4 changed files with 9 additions and 9 deletions

View File

@@ -285,7 +285,7 @@ class PipelineWorker : public AsyncWorker {
// Get pre-resize image width and height
int inputWidth = image->Xsize;
int inputHeight = image->Ysize;
if (rotation == Angle::D90 || rotation == Angle::D270) {
if (!baton->rotateBeforePreExtract && (rotation == Angle::D90 || rotation == Angle::D270)) {
// Swap input output width and height when rotating by 90 or 270 degrees
int swap = inputWidth;
inputWidth = inputHeight;