adding some crashfix related to the editor

This commit is contained in:
tibbi 2019-01-08 13:42:57 +01:00
parent f5c32d0a82
commit 09ac5e59e9

View file

@ -137,6 +137,14 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
setupBottomActions()
if (config.lastEditorCropAspectRatio == ASPECT_RATIO_OTHER) {
if (config.lastEditorCropOtherAspectRatioX == 0) {
config.lastEditorCropOtherAspectRatioX = 1
}
if (config.lastEditorCropOtherAspectRatioY == 0) {
config.lastEditorCropOtherAspectRatioY = 1
}
lastOtherAspectRatio = Pair(config.lastEditorCropOtherAspectRatioX, config.lastEditorCropOtherAspectRatioY)
}
updateAspectRatio(config.lastEditorCropAspectRatio)