Neeraj Gupta hace 2 años
padre
commit
1a25717cb9
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      lib/models/file.dart
  2. 1 1
      lib/ui/viewer/file/zoomable_image.dart

+ 1 - 1
lib/models/file.dart

@@ -285,7 +285,7 @@ class File extends EnteFile {
   }
 
   // return 0 if the height is not available
-  int get heigth {
+  int get height {
     return pubMagicMetadata?.h ?? 0;
   }
 

+ 1 - 1
lib/ui/viewer/file/zoomable_image.dart

@@ -276,7 +276,7 @@ class _ZoomableImageState extends State<ZoomableImage>
       final int h = imageInfo.image.height, w = imageInfo.image.width;
       if (h != 0 &&
           w != 0 &&
-          (h != widget.photo.heigth || w != widget.photo.width)) {
+          (h != widget.photo.height || w != widget.photo.width)) {
         _logger.info('Updating aspect ratio for ${widget.photo} to $h:$w');
         await FileMagicService.instance.updatePublicMagicMetadata(
             [widget.photo], {publicMagicKeyHeight: h, publicMagicKeyWidth: w});