Issue 123875

Summary: Connectors do not snap to grid and do not react on <Shift> key
Product: Draw Reporter: nrbrtx
Component: editingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: Armin.Le.Grand, issues
Version: 4.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=72830
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
ODG file with demonstration of the problem with Straight Connectors none

Description nrbrtx 2013-12-18 11:18:03 UTC
Created attachment 82131 [details]
ODG file with demonstration of the problem with Straight Connectors

As far I can understand - Arrows from Lines and Arrows sub-panel of Drawing toolbar can:
1. be straight (horizontal or vertical = rotated by 45/90/135/180/225/270/315/360) if I press <Shift> key;
2. snap to grid.


I use Draw for diagram creating. So I use elements from Drawing sub-panels Connectors, Glue Points and Basic Shapes.
It was a surprise for me, that Straight Connectors do not snap to grid and do not react on <Shift> key. It is very difficult do connect Connector line to some object without these two options if one of line ends is not connected.
The example is in attachment.

It demonstrates, that:
1. «Straight Connector ends with Arrow» line does not snap to grid and does not react to <Shift> key,  so it is difficult to keep it horizontal or vertical.
2. «Line Ends with Arrow» line snaps to grid and react to <Shift> key, but it does not connect to another object (does not have glue-point, it is not a connector).

Please, if it possible, allow Connector line to act as other lines (add snap to grid and a reaction on <Shift> key). Without this changes it will be very difficult to use Draw as diagram editor for real life tasks.

I see this behaviour on AOO 4.0.1 AOO401m5(Build:9714). May be other versions are affected too.
Comment 1 nrbrtx 2013-12-18 11:19:39 UTC
Bug exists in LibreOffice too - on LO Version: 4.1.3.2 Build ID: 410m0(Build:2) and LO 3.5.7.2 Build ID: 350m1(Build:2).
Comment 2 Armin Le Grand 2014-01-17 22:55:54 UTC
Checked in the code; up to now snap is switched off by purpose when the start or end point of a connector is dragged. It is allowed for the in-between tuning points. I checked what happens when snap is switched on, and the UI is blinking like crazy, probably because the snapped target position is used for evaluation if a corner or glue point is potentially hit.
Thus it is not so easily to be changed, but a good suggestion for enhancement. Changing to enhancement and grepping
Comment 3 Marcus 2017-05-20 10:45:06 UTC
Reset the assignee to the default "issues@openoffice.apache.org".