mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-01 15:58:36 +02:00
[qt6][Viewer] Viewer2D: Fix automatic fitting for missing orientation tags
This commit is contained in:
parent
d4eb365ada
commit
36f7f4e420
1 changed files with 1 additions and 2 deletions
|
@ -161,7 +161,7 @@ FocusScope {
|
|||
// Functions
|
||||
function fit() {
|
||||
// Make sure the image is ready for use
|
||||
if (!imgContainer.image || imgContainer.orientationTag == undefined) {
|
||||
if (!imgContainer.image) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
@ -482,7 +482,6 @@ FocusScope {
|
|||
orientationTag: imgContainer.orientationTag
|
||||
xOrigin: imgContainer.width / 2
|
||||
yOrigin: imgContainer.height / 2
|
||||
|
||||
property real targetSize: Math.max(width, height) * imgContainer.scale
|
||||
property real resizeRatio: imgContainer.scale
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue