Andrei486 / uml-diagram-collab

0 stars 0 forks source link

Deleting an element with a connector snapped saves incorrectly #119

Closed em66850 closed 2 months ago

em66850 commented 5 months ago

I was testing save/load for snapping to make sure it was merged with the formatting panel changes correctly and encountered this issue. I attached a connector to a rectangle, moved the rectangle, and then deleted it. I then saved the file and the element I deleted had appeared in top left corner with the arrow snapped to it. See attached images. I was not able to reproduce this issue. All the commands were saved for the deleted element (we do this for snapped elements), but the add command was saved as more recent than the move and delete, so it created a new element and snapped the connector to it. Loading the affected file produces the issue every time so it is likely an issue with saving. This happened on the text-styling branch. The save file is available here (github won't accept the file type): https://drive.google.com/file/d/1mSvgGuKyYB5oRRBUBwawxckx-dDJuhgp/view?usp=drive_link

before

after