소스 검색

https://github.com/nextcloud-gmbh/h1/issues/107

marinofaggiana 3 년 전
부모
커밋
d1d54e69f2
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

+ 1 - 2
iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

@@ -373,8 +373,7 @@ class NCViewerImage: UIViewController {
                 image = UIImage.animatedImage(withAnimatedGIFURL: URL(fileURLWithPath: imagePath))
             } else if ext == "SVG" {
                 if let svgImage = SVGKImage(contentsOfFile: imagePath) {
-                    let scale = Int(svgImage.size.height / svgImage.size.width)
-                    svgImage.size = CGSize(width: NCGlobal.shared.sizePreview, height: (NCGlobal.shared.sizePreview * scale))
+                    svgImage.size = CGSize(width: NCGlobal.shared.sizePreview, height: NCGlobal.shared.sizePreview)
                     if let image = svgImage.uiImage {
                         if !FileManager().fileExists(atPath: previewPath) {
                             do {