From 44dfe3b7344d0d7006c4d313abc5350d7ebfe6e0 Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Fri, 16 Sep 2022 15:37:06 +0200 Subject: [PATCH] Fix line generation in shape painter --- app/lib/handlers/shape.dart | 1 + fastlane/metadata/android/en-US/changelogs/44.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/lib/handlers/shape.dart b/app/lib/handlers/shape.dart index 53938b7caaa1..57ae7be371a8 100644 --- a/app/lib/handlers/shape.dart +++ b/app/lib/handlers/shape.dart @@ -75,6 +75,7 @@ class ShapeHandler extends Handler { } ShapeElement _normalizeElement(ShapeElement element) { + if (element.property.shape is LineShape) return element; var firstX = element.firstPosition.dx; var firstY = element.firstPosition.dy; var secondX = element.secondPosition.dx; diff --git a/fastlane/metadata/android/en-US/changelogs/44.txt b/fastlane/metadata/android/en-US/changelogs/44.txt index 4c1c4230ab63..0c268f7e90ee 100644 --- a/fastlane/metadata/android/en-US/changelogs/44.txt +++ b/fastlane/metadata/android/en-US/changelogs/44.txt @@ -1,3 +1,4 @@ +* Fix line generation in shape painter * Fix position and size issues when moving elements * Fix gesture issues on area and shape painter and area change problem * Reset pointer on app hide, see #280 \ No newline at end of file