LinwoodDev / Butterfly

🎨 Powerful, minimalistic, cross-platform, opensource note-taking app
https://butterfly.linwood.dev
GNU Affero General Public License v3.0
888 stars 62 forks source link

Detected shapes are not part of the selected layer #715

Closed MrGumpIT closed 1 month ago

MrGumpIT commented 1 month ago

What happened?

A bug happened!

Version

v2.1.1-rc.1

Platform

Android

Relevant log output

No response

Code of Conduct

CodeDoctorDE commented 1 month ago

Feel free to change it. Just pass the selected layer in the document state in the layer parameter of the constructor of the elements. If you have any questions, feel free to ask

MrGumpIT commented 1 month ago

In wich file?

CodeDoctorDE commented 1 month ago

Handler/Pen.dart where you added these lines