Browse Source

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

cyberta 5 years ago
parent
commit
efc87400fd
1 changed files with 1 additions and 1 deletions
  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 {