Share

Violet UML Editor

Tracker: Bugs

5 Inconsistent snap to grid - ID: 1825622
Last Update: Comment added ( snakeveil )

ver 0.21.1

The snap to grid feature works inconsistently. When moving a tool,
sometimes it snaps to the closest anchor point, but other times it chooses
to snap to one of the farther points. There's no visual clue where it's
going to snap now. Moreover, when moving a group of tools, they often snap
differently, thus changing their relative positions.

Expected behavior: a tool always snaps to the visually closest anchor
point. If a group of tools is moved, all the tools in the group snap
consistently.


SnakE ( snakeveil ) - 2007-11-04 16:48

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-11-17 10:06
Sender: snakeveil


Actually snap to grid *should* work as follows:
1. All objects keep their precise coordinates and dimensions and display
according to those precise coordinates, without change
2. When you either finish moving an object or change its contents, and
snap to grid is enabled, the object must update its coordinates according
to the snap rules
3. There should be a menu item, snap all, in case you've changed grid size
and wanted all the objects to re-align
4. At no other circumstances objects should change their coordinates
This makes snap consistent, old schemes readable, and program code
simpler.


Date: 2007-11-05 23:11
Sender: snakeveil


I attached a simple patch that fixes this problem. Hope this helps.
File Added: snap.diff


Log in to comment.

Attached File ( 1 )

Filename Description Download
snap.diff This patch fixes the inconsistent snapping problem Download

Change ( 1 )

Field Old Value Date By
File Added 252956: snap.diff 2007-11-05 23:11 snakeveil