Преглед изворни кода

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 {