Преглед на файлове

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 {