Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accidentally pasting a codebox into a codebox causes problems #2625

Closed
Qehremanov opened this issue Jan 2, 2025 · 1 comment
Closed

Accidentally pasting a codebox into a codebox causes problems #2625

Qehremanov opened this issue Jan 2, 2025 · 1 comment

Comments

@Qehremanov
Copy link

Qehremanov commented Jan 2, 2025

Version, Operating system
CherryTree version: 1.2.0
OS: Ubuntu 20.04.1
Desktop: Gnome

Describe the bug
Multiple issues occur when I accidentally copy and paste a CodeBox into a Codebox.
For example, a codebox that I pasted into the codebox appears on the first line of the node. When I try to save the program, it crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Create a codebox. (Shift + Alt + D)
  2. Write something in it.
  3. Copy the codebox. (Ctrl + C)
  4. Create a new codebox. (Shift + Alt + D)
  5. Paste the codebox into the newly created codebox. (Ctrl + V)
  6. You will see the old codebox in the first line of the node.
  7. Delete the newly created codebox.
  8. Save.
  9. The program will crash.

Screenshots
1

2

3

@Qehremanov Qehremanov changed the title Accidentally pasting the code into the code box causes problems Accidentally pasting a codebox into a codebox causes problems Jan 2, 2025
@giuspen
Copy link
Owner

giuspen commented Jan 3, 2025

Thanks for reporting, this has now been fixed.

@giuspen giuspen closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants