Bugfix: fix incorrect orientation of small image-like layers.

This commit is contained in:
2017-12-01 14:54:04 +01:00
parent 259e809c2f
commit 94ee38efb2

View File

@@ -17,7 +17,7 @@ MultiImageVisualisation::MultiImageVisualisation(const fmri::LayerData &layer)
CHECK_EQ(1, images) << "Only single input image is supported" << endl; CHECK_EQ(1, images) << "Only single input image is supported" << endl;
int columns = sqrt(channels); int columns = ceil(sqrt(channels));
while (channels % columns) columns++; while (channels % columns) columns++;
// Create the quads for the images. // Create the quads for the images.