summaryrefslogtreecommitdiffstats
path: root/basicsuite/Photo Gallery/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/Photo Gallery/main.qml')
-rw-r--r--basicsuite/Photo Gallery/main.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/basicsuite/Photo Gallery/main.qml b/basicsuite/Photo Gallery/main.qml
index d3bedba..fa0e577 100644
--- a/basicsuite/Photo Gallery/main.qml
+++ b/basicsuite/Photo Gallery/main.qml
@@ -201,11 +201,10 @@ Item {
var targetScale;
// Rotation needed...
- if (imageIsLandscape != screenIsLandscape) {
+ if (imageIsLandscape != screenIsLandscape && width != height) {
root.targetRotation = 90;
var aspect = width / height
var screenAspect = root.height / root.width
- print("Aspect ratios in portrait: ", aspect, screenAspect);
if (aspect > screenAspect) {
targetScale = root.height / width
@@ -216,7 +215,6 @@ Item {
root.targetRotation = 0;
var aspect = height / width;
var screenAspect = root.height / root.width
- print("Aspect ratios in portrait: ", aspect, screenAspect);
if (aspect > screenAspect) {
targetScale = root.height / height
@@ -231,8 +229,6 @@ Item {
width = root.size
height = root.size;
- print("BigImage size: ", width, height, targetWidth, targetHeight);
-
finalizeEnterLargeAnimation.running = true;
}
}