Fix stupid comparison bug

Previously, dim.width < dim.height would never return true, since it is
already checked by dim.height >= dim.width.
This commit is contained in:
scorpion-26 2023-07-19 01:01:16 +02:00
parent 0a1a384e48
commit e0255024c3

View file

@ -304,7 +304,7 @@ Quad CairoArea::GetQuad()
q.x = 0; q.x = 0;
q.y = ((double)dim.height - (double)dim.width) / 2; q.y = ((double)dim.height - (double)dim.width) / 2;
} }
else if (dim.width < dim.height) else if (dim.height < dim.width)
{ {
// Height greater than width; Fill in y and add margin at the sides // Height greater than width; Fill in y and add margin at the sides
q.size = dim.height; q.size = dim.height;