Bug 144371 - Angles when plotting lines
Summary: Angles when plotting lines
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-08 08:53 UTC by Gerhard Schmidt
Modified: 2021-09-11 10:44 UTC (History)
1 user (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 Gerhard Schmidt 2021-09-08 08:53:56 UTC
Description:
When plotting or editing lines in LibreOffice Draw they always get angles. So when editing a straight line I end up with an angle of 0.05 or 359.95 degrees. What I expect is that the previously set angle is simply continued. I could live with a solution that allows angle changes only manually or when the red editing mode is explicitly selected on an object.
That makes Draw really uneasy to use, so please change this.
BTW: Having angles now with two digits precision is really a good decision.

 

Steps to Reproduce:
1. Paint a line with an angle of 90 degrees and 1 cm height.
2. Expand that line with the mouse to 2 cm height.


Actual Results:
The angle changes from 90 to "around" 90 degrees.

Expected Results:
The angle should be 90 degrees.


Reproducible: Always


User Profile Reset: No



Additional Info:
Leave the angle as it is.
Comment 1 [REDACTED] 2021-09-08 12:25:54 UTC
No repro

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 1; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: threaded

However, I suspect one or both of the following is not regarded:

[1] Check whether option "Snap to grid" is set using "Tools -> Options -> LibreOffice Draw -> Grid -> Option: [x] Snap to grid". If this is not set, any slight distortion of a line (in general: object) is done on a more granular level than given by grid settings.

[2] If exact values of object dimensions is needed, then the advice is: Set the properties using the Properties dialogs instead of manually resizing objects using a mouse. In the case reported here: 

- Select the line
- View -> Sidebar (or CTRL+F5)
- Assure "Properties" is selected (first icon in toolbar leftmost of sidebar)
- Set the desired value "Height" in section "Properties and Size"

From my perspective not a bug
Comment 2 Regina Henschel 2021-09-08 20:10:40 UTC
There are some ways to avoid these small inaccuracies which you get when using the mouse:

To draw horizontal or vertical lines press the shift-key while dragging with the mouse.

To change the length of an existing line use the "Position and Size" dialog.

Use Ctrl+Tab and Ctrl+Shift+Tag to activate start or end point of the line. Then use the arrow keys (combine with Shift- or Alt-Key) to move that point.

Besides the already mentioned general grid you can enable "Snap to grid guides" and use snap lines and snap points for exact positions.

Please use Draw Guide and Help (F1) or ask on users@global.libreoffice.org or https://ask.libreoffice.org to get assistance in using Draw.
Comment 3 Gerhard Schmidt 2021-09-11 10:44:20 UTC
Hi.

Using the Snap-to-grid when drawing electrical schematics is not a very useful choice. It restricts by far too much to be practical.

Shouldn't the "Keep angles when mouse editing objects such as lines" be the default? At least within limited angle changes? Wouldn't the "Limiting objects" angle of 15° in the "Options" dialog be a good choice for that? So when an Object has an angle of 0, 45, 90, 135, 180, 225, 270 or 315 degrees and if the mouse doesn't change the angle by more than 15 degrees, just leave it as it is. If someone really wants to change angles, the Umschalt-key would have to be pressed.

That would increase the usability of Draw immense, at least for me.

brgs,
gsc

PS: And thanks for this wonderful drawing tool. I use it for all my electrical schematics and it is by far more flexible and easy-to-use than any specialized electronic software.