Bug 98967 - Paragraph "Fixed" line spacings using Point units are incorrectly being rounded--unable to set spacing to tenths or hundredths of a Point precision
Summary: Paragraph "Fixed" line spacings using Point units are incorrectly being round...
Status: RESOLVED DUPLICATE of bug 98993
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2016-03-29 19:50 UTC by RGB
Modified: 2017-02-09 22:22 UTC (History)
5 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 RGB 2016-03-29 19:50:24 UTC
On recent LibO versions (since 4.2, it seems) when you set line spacing to «fixed» you can only use integer point values. For example, if you try to insert 14.4 pt Writer will round that value to 14 pt but if you insert 14.5, the value will be rounded to 15 pt. 

On older LibO versions (4.1 and before, I think) it used to be possible to set decimal values like 14.4 pt. 

Notice that AOO still allow the use if tenths of a point, so if someone creates a document on AOO Writer (or pick an old LibO document) with line spacing set to 14.5 pt and then open that document on a recent LibO Writer the line spacing will be rounded to 15 pt giving a difference on line spacing between both documents of more than 3%, which is _really_ noticeable.
Comment 1 Joel Madero 2016-03-29 20:03:20 UTC
Updating version to 4.2 (earliest version) since that's what OP says is when the issue hit

Also asking UX if this was done on purpose and thus this should be closed as WONTFIX.
Comment 2 Robinson Tryon (qubit) 2016-08-25 05:49:17 UTC Comment hidden (obsolete)
Comment 3 Heiko Tietze 2016-09-21 11:42:27 UTC
(In reply to Joel Madero from comment #1)
> Also asking UX if this was done on purpose...

Not that I know. Testing with 5.3 I can effectively use a precision of 1/1000cm as well as 1/100pt using the sidebar. So its not clear to me where the issue comes from, 4.2 or a special input. => NEEDINFO
Comment 4 RGB 2016-09-21 13:08:48 UTC
(In reply to Heiko Tietze from comment #3)
> (In reply to Joel Madero from comment #1)
> > Also asking UX if this was done on purpose...
> 
> Not that I know. Testing with 5.3 I can effectively use a precision of
> 1/1000cm as well as 1/100pt using the sidebar. So its not clear to me where
> the issue comes from, 4.2 or a special input. => NEEDINFO

Just tested with a daily build and find that there is something really odd going on here. If you set the line spacing on the sidebar to, let's say, fixed at 14.4 pts that number will stay at 14.4 pts *there*, but the text will be far more stretched that that, in fact if you go now to the paragraph formatting you'll find that the line spacing is set at 26 pts!

To see this better, go to Tools → Options → LibreOffice(Dev) Writer → General and change the Measurement units to points. 

Another example: Fixed of 15 pts on the paragraph formatting shows as Fixed of 8.5 pts on the sidebar.
Comment 5 V Stuart Foote 2016-09-21 15:35:33 UTC
Confirming original issue on the Paragraph dialog in
Version: 5.2.1.2 (x64)
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
Locale: en-US (en_US); Calc: group

Setting Tools -> Options -> LibreOffice Writer -> General: Measurement unit drop list to "Point"

and setting the Paragraph dialog's Indents and Spacing tab: Line Spacing drop list to Fixed

Values entered in 1/10ths or 1/100ths of Point are being rounded in the resulting ODF archive's content.xml

When Writer measurement units are in Inch, precise value entered for Spacing are not retained either and are off by a couple of 1/1000th of inch, but they are not rounded like the Point values.

Also, values when setting Measurement unit to Pica are correctly converted to  1/10th Point in the content.xml--e.g. 0.8pc gets recorded as 9.61pt  (1 pc = 12 pt).

So pretty clear there is an issue incorrectly converting Paragraph "line-height" for Point measurement units. It is not truncated but is being rounded, e.g. 14.45 -> 14, 14.55 -> 15

Issue was not present through
Version: 4.1.6.2
Build ID: 40ff705089295be5be0aae9b15123f687c05b0a

But manifests by
Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

Needs a proper bibisect.
Comment 6 Michael Stahl (allotropia) 2017-02-09 22:22:10 UTC

*** This bug has been marked as a duplicate of bug 98993 ***