Explorar o código

fix app crash b/c of too many decimal places in CGFloat -> Int32 conversion

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
efc87400fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/DC/Wrapper.swift

+ 1 - 1
deltachat-ios/DC/Wrapper.swift

@@ -789,7 +789,7 @@ class DcMsg: MessageType {
     }
 
     func setDimension(width: CGFloat, height: CGFloat) {
-        dc_msg_set_dimension(messagePointer, Int32(exactly: width)!, Int32(exactly: height)!)
+        dc_msg_set_dimension(messagePointer, Int32(width), Int32(height))
     }
 
     var filesize: Int {