Issue 127000 - Changing of Measurement units sometimes updates units, but not recalculate amount of Spacing in the field
Summary: Changing of Measurement units sometimes updates units, but not recalculate am...
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 4.1.2
Hardware: PC Windows 8, 8.1
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 13:18 UTC by Julia Balashova
Modified: 2017-04-20 07:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
actual result of Step 4 (47.27 KB, image/png)
2016-06-17 13:18 UTC, Julia Balashova
no flags Details
actual result for Step 5 (51.15 KB, image/png)
2016-06-17 13:22 UTC, Julia Balashova
no flags Details
actual result for Step 6 (44.18 KB, image/png)
2016-06-17 13:23 UTC, Julia Balashova
no flags Details
scenario1_result1 (75.85 KB, image/png)
2017-04-19 15:49 UTC, Irena Macelova
no flags Details
scenario2_result1 (72.00 KB, image/png)
2017-04-19 15:50 UTC, Irena Macelova
no flags Details
scenario2_result2 (71.15 KB, image/png)
2017-04-19 15:51 UTC, Irena Macelova
no flags Details
scenario2_result3 (70.21 KB, image/png)
2017-04-19 15:54 UTC, Irena Macelova
no flags Details
scenario2_result4 (72.64 KB, image/png)
2017-04-19 15:55 UTC, Irena Macelova
no flags Details
scenario2_result5 (69.21 KB, image/png)
2017-04-19 15:56 UTC, Irena Macelova
no flags Details
scenario3_result1 (71.44 KB, image/png)
2017-04-19 15:58 UTC, Irena Macelova
no flags Details
scenario3_result2 (69.84 KB, image/png)
2017-04-19 15:59 UTC, Irena Macelova
no flags Details
scenario3_result3 (71.71 KB, image/png)
2017-04-19 16:04 UTC, Irena Macelova
no flags Details
scenario3_result4 (72.09 KB, image/png)
2017-04-19 16:04 UTC, Irena Macelova
no flags Details
scenario3_result5 (70.97 KB, image/png)
2017-04-19 16:05 UTC, Irena Macelova
no flags Details
scenario4_result1 (87.80 KB, image/png)
2017-04-19 16:07 UTC, Irena Macelova
no flags Details
scenario4_result2 (86.76 KB, image/png)
2017-04-19 16:08 UTC, Irena Macelova
no flags Details
scenario5_result1 (74.43 KB, image/png)
2017-04-19 16:09 UTC, Irena Macelova
no flags Details
scenario6_result1 (71.45 KB, image/png)
2017-04-19 16:10 UTC, Irena Macelova
no flags Details
scenario3_result6 (71.42 KB, text/plain)
2017-04-19 16:14 UTC, Irena Macelova
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Julia Balashova 2016-06-17 13:18:27 UTC
Created attachment 85578 [details]
actual result of Step 4

1. Set measurement units to cm
("Tools" => "Options" and then "OpenOffice.org Writer" => "General" => "Settings")
2. Set focus on some txt Paragraph in the document
3. Open Properties slider 
4. Set ‘Above paragraph spacing’ variable for this paragraph to 10 cm
5. Change measurement units to inches
Actual result: correct, amount is recalculated to 3.94; units are changed from cm to "
6. Change measurement units back to cm


Actual result:
Units are changed back to cm, but amount is still 3.94

Expected result:
Amount should be set back to 10.00
Comment 1 Julia Balashova 2016-06-17 13:22:19 UTC
If you try to change Amount by arrow buttons, not-recalculated amount will be decreased/increased, so the paragraph will shifted dramatically and value entered in Step 4 will be lost

To see the value recalculated you need to set focus on some other paragraph and come back to this one again
Comment 2 Julia Balashova 2016-06-17 13:22:49 UTC
Created attachment 85579 [details]
actual result for Step 5
Comment 3 Julia Balashova 2016-06-17 13:23:06 UTC
Created attachment 85580 [details]
actual result for Step 6
Comment 4 Irena Macelova 2017-04-19 15:46:46 UTC
The original bug was replicated using:

Hardware/Software:
Windows 8 / Apache Open Office 4.1.4 - Windows snapshot build 
Windows 10 /  Apache Open Office 4.1.4 - Windows snapshot build
OS X El Capitan version 10.11.6 / Apache Open Office 4.1.3

The follow-up tests were done using
Windows 10 /  Apache Open Office 4.1.4 - Windows snapshot build

Summary:
- I was able replicate this bug with the Spacing amount - 10 cm
- I was able replicate this bug with different spacing amounts e.g 5 cm, 8.75 cm
- I was able replicate this bug for the Indent too
- I was able replicate this bug for the different units combination - mm/inch
- I was able replicate this bug in case I fill in the Spacing manually and also I use the arrow button
- I wasn't able to replicate this bug in Format > Paragraph > Spacing & Indents
- I wasn't able to replicate this bug for the Spacing/Indent amounts 

Please see the detailed test scenarios below:

Scenario 1 - replicate the original bug with the 10 cm spacing amount

1. Open a new document in the Open Office Writer
2. Write the text
3. See the Properties slider – the default setting of the measurement units: inch
4. Go to Tools > Options > Open Office Writer > General > Settings and change the measurement units to the cm
5. Go to the first Paragraph
6. Set (fill in manually) the ‘Above paragraph spacing’ to 10 cm in the Properties slider (the spacing was applied correctly)
7. Change the measurement unit setting to: inch (the spacing was recalculated to inch – 3.94'')
8. Change the measurement unit setting to: cm
9. Verify if the spacing was recalculated to cm – the measurement unit was changed but the amount wasn’t recalculated - displayed result is 3.94 cm – please see the screenshot scenario1_result1
10. Verify if the spacing above paragraph was changed as per incorrectly calculated amount - spacing doesn't change - screenshot scenario1_result1

----------

Scenario 2 - use the different spacing amount

1. Open a new document in the Open Office Writer
2. Write the text
3. See the Properties slider – the default setting of the measurement units: inch
4. Go to Tools > Options > Open Office Writer > General > Settings and change the measurement units to the cm
5. Go to the first Paragraph
6. Set (fill in manually) the ‘Above paragraph spacing’ to 5 cm in the Properties slider (the spacing was applied correctly)
7. Change the measurement unit setting to: inch (the spacing was recalculated to inch – 1.97'')
8. Change the measurement unit setting to: cm
9. Verify if the spacing was recalculated to cm – the measurement unit was changed but the amount wasn’t recalculated - displayed result is 3.94 cm – please see the screenshot scenario2_result1
10. Verify if the spacing above paragraph was changed as per incorrectly calculated amount - spacing doesn't change - screenshot scenario2_result1

Repeat the steps above for the different spacing amounts

- 3 cm - the recalculations is correct - screenshot scenario2_result2
- 2.5 cm - the recalculation is correct - but there is the rounding error - scenario2_result3
- 8.75 cm - the recalculation is incorrect - 3.94 cm instead of 8.75 cm - screenshot scenario2_result4
- 9.99 cm - the recalculation is incorrect - 3.94 cm instead of 9.99 cm screenshot scenario2_result5

-------------------------------

Scenario 3 - change another format field - Indent

1. Open the Open Office Writer
2. Create a new document in the Open Office Writer – the default setting of units is inches
3. Go to Tools > Options > Open Office Writer > General > Settings and change the unit settings to cm 
4. Go to the first paragraph
5. Set the Before text Indent to 10 cm in the Properties slider (the Indent was applied correctly)
6. Change the measurement unit to inches (the amount was recalculated to 3.94'')
7. Change the unit to cm
8. Verify if the amount of Before indent was recalculated – the amount is recalculated incorrectly 6.73 cm instead of 10 cm - scenario3_result1

Repeat the scenario above for the different Indent amounts

- 5 cm - the recalculation is correct - scenario3_result2
- 3 cm - the recalculation is correct - scenario3_result3
- 2.5 cm - the recalculation is correct - but there is the rounding error - 2.49 instead of 2.5 cm - scenario3_result4
- 8.75 cm - the recalculation is incorrect - 6.73 cm instead of 8.75 cm - scenario3_result5
- 9.99 cm - the recalculation is incorrect - 6.73 cm instead of 8.75 cm - scenario4_result5

-----------------------------------
Scenario 4 - use Format > Paragraph > Indents & Spacing

1. Open a new document in the Open Office Writer
2. Write the text
3. See the Properties slider – the default setting of the measurement units: inch
4. Go to Tools > Options > Open Office Writer > General > Settings and change the unit settings to cm
5. Go to the first paragraph
6. Click Format > Paragraph and in the Indents & Spacing tab set the ‘Above paragraph spacing’ to 10 cm (fill in manually) - the spacing was applied
7. Change the measurement unit setting to inches
8. Go to Format > Paragraph and verify if the spacing amount was recalculated and the measurement unit was changed - the amount recalculated to 3.94''
9. Change the measurement unit setting to cm
10. Go to Format > Paragraph and verify if the amount was recalculated and the unit was changed - the amount was recalculated to 10 cm
11  See the Properties slider and verify if the amount of the Above spacing is recalculated correctly - the Properties slider displays the incorrect amount - 3.94 cm - scenario4_result1

Repeat the scenario above of the Indents
- Before text Indent - Before text Indent is recalculated correctly in the Format > Paragraph > Indents & Spacing, the incorrect amount is displayed in the Properties slider - scenario4_result2

-----------------------------
Scenario 5 - use the different measurement unit combination mm/inches

1. Open a new document in the Open Office Writer
2. Write the text
3. See the Properties slider – the default setting of the measurement units: inch
4. Go to Tools > Options > Open Office Writer > General > Settings and change the measurement units to the mm
5. Go to the first Paragraph
6. Set (fill in manually) the ‘Above paragraph spacing’ to 100 mm in the Properties slider (the spacing was applied correctly)
7. Change the measurement unit setting to: inch (the spacing was recalculated to inch – 3.94'')
8. Change the measurement unit setting to: cm
9. Verify if the spacing was recalculated to cm – the measurement unit was changed but the amount wasn’t recalculated - displayed result is 3.94 mm – please see the screenshot scenario5_result1
10. Verify if the spacing above paragraph was changed as per incorrectly calculated amount - spacing doesn't change - screenshot scenario5_result1

----------

Scenario 6 - use the arrows button for the spacing amount change

1. Open a new document in the Open Office Writer
2. Write the text
3. See the Properties slider – the default setting of the measurement units: inch
4. Go to Tools > Options > Open Office Writer > General > Settings and change the measurement units to the cm
5. Go to the first Paragraph
6. Set (using arrow button) the ‘Above paragraph spacing’ to 10 cm in the Properties slider (the spacing was applied correctly)
7. Change the measurement unit setting to: inch (the spacing was recalculated to inch – 3.94'')
8. Change the measurement unit setting to: cm
9. Verify if the spacing was recalculated to cm – the measurement unit was changed but the amount wasn’t recalculated - displayed result is 3.94 cm – please see the screenshot scenario6_result1
10. Verify if the spacing above paragraph was changed as per incorrectly calculated amount - spacing doesn't change - screenshot scenario6_result1
Comment 5 Irena Macelova 2017-04-19 15:49:07 UTC
Created attachment 86011 [details]
scenario1_result1
Comment 6 Irena Macelova 2017-04-19 15:50:53 UTC
Created attachment 86012 [details]
scenario2_result1
Comment 7 Irena Macelova 2017-04-19 15:51:51 UTC
Created attachment 86013 [details]
scenario2_result2
Comment 8 Irena Macelova 2017-04-19 15:54:31 UTC
Created attachment 86014 [details]
scenario2_result3
Comment 9 Irena Macelova 2017-04-19 15:55:18 UTC
Created attachment 86015 [details]
scenario2_result4
Comment 10 Irena Macelova 2017-04-19 15:56:21 UTC
Created attachment 86016 [details]
scenario2_result5
Comment 11 Irena Macelova 2017-04-19 15:58:30 UTC
Created attachment 86017 [details]
scenario3_result1
Comment 12 Irena Macelova 2017-04-19 15:59:09 UTC
Created attachment 86018 [details]
scenario3_result2
Comment 13 Irena Macelova 2017-04-19 16:04:20 UTC
Created attachment 86019 [details]
scenario3_result3
Comment 14 Irena Macelova 2017-04-19 16:04:58 UTC
Created attachment 86020 [details]
scenario3_result4
Comment 15 Irena Macelova 2017-04-19 16:05:46 UTC
Created attachment 86021 [details]
scenario3_result5
Comment 16 Irena Macelova 2017-04-19 16:07:09 UTC
Created attachment 86022 [details]
scenario4_result1
Comment 17 Irena Macelova 2017-04-19 16:08:25 UTC
Created attachment 86023 [details]
scenario4_result2
Comment 18 Irena Macelova 2017-04-19 16:09:10 UTC
Created attachment 86024 [details]
scenario5_result1
Comment 19 Irena Macelova 2017-04-19 16:10:17 UTC
Created attachment 86025 [details]
scenario6_result1
Comment 20 Irena Macelova 2017-04-19 16:14:32 UTC
Created attachment 86026 [details]
scenario3_result6
Comment 21 Irena Macelova 2017-04-19 16:16:31 UTC
CORRECTION:
Scenario 3 - change another format field - Indent

- 9.99 cm - the recalculation is incorrect - 6.73 cm instead of 9.99 cm - scenario3_result6
Comment 22 Irena Macelova 2017-04-20 07:08:15 UTC
CORRECTION:

Summary:
I wasn't able to replicate this bug for the Spacing/Indent amounts 

should be changed to

I wasn't able to replicate this bug for all used Spacing/Indent amounts 

I'm sorry for the typo.