<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Styles' font size values converted from point into percent or from percent into point do do match each others."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=122562">122562</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Styles' font size values converted from point into percent or from percent into point do do match each others.
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.2.1 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ricky.tigg@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>