[Libreoffice-bugs] [Bug 122562] New: Styles' font size values converted from point into percent or from percent into point do do match each others.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 8 14:14:35 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=122562

            Bug ID: 122562
           Summary: Styles' font size values converted from point into
                    percent or from percent into point do do match each
                    others.
           Product: LibreOffice
           Version: 6.1.2.1 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: ricky.tigg at gmail.com

Description:
Styles' font size values converted from point into percent or from percent into
point do do match each others.

Steps to Reproduce:
1. Open both ODT documents with no content Untitled 1_point, Untitled
1_percent. Only style applied is Heading 1;
2. In in both show Sidebar (Ctrl F5) => Styles => Applied Styles; Right-click
Heading 1 an select Modify; Open Font tab;
3. In Untitled 1_percent, under Font tab, Size:'s field, current value is
'130%' which is matched by '18.2' points in the Writer tool bar. Replace '130%'
by 'pt', click Apply.
4. In Untitled 1_point, under Font tab, Size:'s field, current value is '24 pt'
which is matched by '24' points in the Writer tool bar. Replace '24 pt' by '%',
click Apply, then OK.


Actual Results:
3. – value '130%' is converted into '13 pt'.
4. – value '24 pt' is converted into '240%', which is itself matched by '33.5'
pt in the Writer tool bar.

Expected Results:
3. – value '130%' converted into value '18.2 pt'.
4. – value '24 pt' converted into value '172%' – (240 %/33.5 pt)*24 pt =
171.9408 %, rounded to 172 % – matching the current value in point.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.1.2.1; Build ID: 6.1.2.1-4.fc29; CPU threads: 4; OS: Linux 4.19; UI
render: default; VCL: gtk3; Locale: en-GB (en_GB.UTF-8); Calc: group threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190108/dde57b4e/attachment.html>


More information about the Libreoffice-bugs mailing list