BeelGroup / Docear-Desktop

Docear's desktop version (GPL)
296 stars 90 forks source link

apply predefined style to free node causes connection to root #492

Open clayt85 opened 7 years ago

clayt85 commented 7 years ago

If I insert a free node, and then apply one of the predefined styles (e.g., right click the free node > Apply style > Level 2) the free node will then be (re)connected to the main/root node. Seems like this should not be the desired behavior--I would like to apply the formatting style only, but the node should remain a free node.

The cause appears to be the way the structures are defined: a free node is (behind the scenes) just a regular node but with hidden edges. Perhaps it should be possible to hide only the edge connecting the free node to the root, while edges from the free node to its children remain visible