Fix typo
This commit is contained in:
parent
3e1f8e3281
commit
1a25717cb9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue