Bug 138272 - No snap when drawing circular arcs from centre point
Summary: No snap when drawing circular arcs from centre point
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Snap-Dialog
  Show dependency treegraph
 
Reported: 2020-11-16 21:58 UTC by Peter
Modified: 2023-05-18 15:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2020-11-16 21:58:04 UTC
Description:
I want to draw a circular arc with centre and radius defined by grid points. Alt is needed to centre, but then overrides snap.
Using Alt for both purposes creates a conflict in this context.

Steps to Reproduce:
1.Set snap to grid
2.Draw a horizontal line with end points at grid points
3.Place cursor at left end of line, left click and hold Alt-Shift
4.Move cursor to right end of line. Arc radius is created, but it is impossible to snap to end of line or grid point (the same point). So the radius in almost certain to be inaccurate.
5. Release Shift and left click, maintain Alt and draw arc

Actual Results:
Arc is drawn, but not accurately.

There is a similar issue with the sector tool.

Expected Results:
Accurate circular arc of fixed radius centred on initial point set by the grid.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
This is really a feature request. At present Alt does 2 things which interfere. It centres the arc (and most other figures) at the first click, but it also overrides snap to grid. While it is possible to uncheck snap to grid and use Alt to snap, that then means the initial (centre) point is not snapped to grid. Either way the objective of having an arc centred on a point with a predefined radius is not possible, except inaccurately by sight.

I would have thought that most users of the arc tool would want it centred on the first point and not dragged out of position, so one solution would be to make the arc tool centred by default. The steps above even if a slightly inaccurate result is acceptable are still very complicated and awkward.

Another solution would be to use a different modifying key for snap and for centre. Not being able to operate one without the other is a severe limitation.

Finally I am only making the request because in almost all other respects Draw is a wonderful tool!

Another solution
Comment 1 Buovjaga 2021-07-29 11:49:03 UTC
Let's add UX team into the discussion on how to solve it in practice
Comment 2 Heiko Tietze 2021-08-23 14:20:40 UTC
Cannot follow the alt+shift step. But when I create an arch with the usual arch tool it snaps as the line does. What am I missing?

Regina, what do you think?
Comment 3 Regina Henschel 2021-08-23 15:26:34 UTC
(In reply to Heiko Tietze from comment #2)
> Cannot follow the alt+shift step. But when I create an arch with the usual
> arch tool it snaps as the line does. What am I missing?
> 
> Regina, what do you think?

Make sure you use an object from the toolbar "Legacy Circles and Ovals". Enable Grid. Set (temporarily) the subdivision of the grid to 1 so that snapping is better visible. Enable "Snap to grid".

Select "Circle" tool. Draw a circle by dragging from left-top to bottom-right. Notice how the size jumps to the grid point.

Now hold down the Alt-key from before dragging until after dragging. You will now draw the circle starting from circle center. Notice that the size of the circle changes continuously and does not snap to the next grid point.

If it is not a bug, it is surely a valid enhancement request, that holding down Alt-key should not disable "snap to grid".

The Alt-key for creating and resizing from center works for all shapes but custom shapes. That is a bug 76073.

The Shift-key generally toggles the "fixed ratio width to height" behavior and can be combined with the Alt-key.
Comment 4 Heiko Tietze 2021-08-24 07:16:20 UTC
(In reply to Regina Henschel from comment #3)
> If it is not a bug, it is surely a valid enhancement request, that holding
> down Alt-key should not disable "snap to grid".

Got it. And yes, valid enhancement request.