Issue 126248

Summary: Increase/reduce font size on boundary values can not reverse back to the same value
Product: Impress Reporter: richard.lu
Component: uiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Minor    
Priority: P4 CC: gwillia3, tbrooks4
Version: 4.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Impress Font Test File
none
Screenshots of issue 126248 none

Description richard.lu 2015-04-16 17:15:52 UTC
Test environment: AOO411m6(Build:9775)  -  Rev. 1617669 2014-08-13 09:06:54 (Mi, 13 Aug 2014) on Windows 7 - 64 bit.

Found this issue while confirming issue 19621.

Steps to reproduce:
(1) Create a slide with 2 lines of text. Set the first line of text to be “6” (at 6 points), Set the second line of text to be “96” (at 96 points).
(2) Select first line of text (6 points). Clicking on the reduce font size button located on the top menu ribbon 2 times, then clicking on the increase font size button next to the reduce font size button 2 times. Note the actual result 1.
(3) Select first line of text (96 points). Clicking on the increase font size button located on the top menu ribbon 2 times, then clicking on the reduce font size button next to the increase font size button 2 times. Note the actual result 2.

Actual results:
Reduce the font size on 6 points text line will decrease it to a value that is outside of the font size range available in the font size drop down list. In this case, if you select a 6 points text line and click reduce font size button 2 times, it will decrease the font size of that text line to 5.4 and 4.9. Everything happens up to this point is ok and reasonable. However, inconsistency happens when you click on the increase font size buttons on the 4.9 points text line. When you click on the increase font size button on the 4.9 points text line, the font size will jump directly to 6 points, skipping the 5.4 points.
Similar things happen to the 96 points text line. When you select a 96 points text line and click increase font size button 2 times. it will increase the font size of that text line to 105.6 and 116.2. When you click on the reduce font size button on the 116.2 points text line 2 times, the font size will decrease to 104.6 and 94.1, but is not the 96 points we started with.

The issue I observed is not something I would reasonably expect and is not consistent with my experience with other comparable programs. In this case I check with MS PowerPoint 2010 since it is a direct competitor to Impress. MS PowerPoint 2010 do not have this issue.
Comment 1 Terri Brooks 2016-04-25 01:37:36 UTC
I was able to replicate this issue using OpenOffice version 4.1.1 and with the newer version 4.1.2.  I tested this on Windows 7 & Windows 10. (Note: I did make an additional observation which I documented following step 10 below)

Steps to Recreate: 

Test 1:  Font Point Size 6

1. Open an existing presentation or create a new blank one in Impress.
2. Verify that the ‘Text formatting toolbar’ is visible in the ribbon area.  If not, then go to menu:   View > Toolbars > Text formatting to open the toolbar.
3. Add a new slide to the presentation. 
4. On the new slide add a line of text (any text).
5. Select the text and set the font size to 6 points.
6. With line still selected click the ‘Reduce Font’ button (in Text formatting toolbar) twice and note the font size is reduced to 5.4, then 4.9.
7. click the ‘Increase Font’ button (in Text Formatting toolbar) one time. 
Expected Results:  Font will decrease to font size 5.4
Actual Results:  Font size automatically increases to 6 points.

Test 2:  Font Point Size 9

8. With the line of text still selected - set the font size to 96.
9. Click the ‘Increase Font’ button (in Text formatting toolbar) twice and note the font size is incremented twice:  My system increments:  105.5 > 116.1 
10. With text still selected - click the ‘Decrease Font’ button twice in order to return to the original point size 96.
Expected Results:  Font size will return to ‘96’
Actual Results:  The font size decreases to ‘94’ and does not return to the original 96 points.  On my system it decreases from 116.1 to 104.5, then finally to 94 points.  (similar to Richard’s results)

Additional observation:  In running some follow up tests I noticed at the end of step 10 IF I click to decrease the font size until I reach size ‘88’  – and then click to increase the font – I am returned to the original font size of ‘96’.  It seems to revert back to the standard font sizes once you hit font size 88.  

Additional Comments regarding above tests:   
- For step 6:  It’s not necessary to just click ‘two’ times - you can increase/decrease the font all the way down to the smallest size of ‘2’ and get the same results:  Once you click ‘Increase Font’ – it will automatically revert right back to point size of ‘6’.

-For step 10:  It’s not necessary to just click ‘two’ times - you can increase the point size all the way to the maximum size of ‘999.9’ with the same results – you are never able to get back to the original point size of 96 until you reach size of 88.

-I wanted to note also that I ran the following variations when executing steps 1-10 above – and none of these variables made any difference to the test results.  All tests yielded the same results as described above:  
•	Various font types/styles
•	Variable text in text line (numbers versus letters, all caps, all lower case, mixed case, etc.)

I've attached the Impress document that I used in order to perform testing 


Tested on the following Systems:

System 1:
Windows 7 Ultimate 64-bit version 6.1.7601
AMI Alaska - 1072009 08/13/13
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz Intel64 Family 6 Model 58 Stepping 9

System 2:
Windows 10 Pro
ASUS All-in-one PC
Intel® Core™ i5-4200U CPU @ 1.60 GHz 2.60 GHz

This issue might be related to Issue 126247
Comment 2 Terri Brooks 2016-04-25 01:38:33 UTC
Created attachment 85501 [details]
Impress Font Test File
Comment 3 gwillia3 2017-05-13 00:53:18 UTC
 I replicated the bug and listed below are the steps to do it for test 3,4.

TEST 1 – Verify Font Changes accordingly when Increasing by 1
•	Step 1:  Open Impress
•	Step 2: Type “18,20,22,24,26” on individual lines
•	Step 3: Set “Font Size” to equal the number itself (for example, “18” should be set to a font size = 18 and “20” should be set to a font size = 20)
•	Step 4: Highlight Rows, then click one time on the button icon (Located on toolbar) that increases font size
•	Step 5:  Verify the font size increased by one “step” for each number
Typed Value	Expected Font Size
18	20
20	22
22	24
24	26
26	28
28	32
•	Step 6:  Highlight Rows, then click one time on the button icon (Located on toolbar) that decreases font size
Typed Value	Expected Font Size
18	18
20	20
22	22
24	24
26	26
28	28

TEST 2 – Verify Font Changes accordingly when Increasing by 2
•	Step 1:  Open Impress
•	Step 2: Type “18,20,22,24,26” on individual lines
•	Step 3: Set “Font Size” to equal the number itself (for example, “18” should be set to a font size = 18 and “20” should be set to a font size = 20)
•	Step 4: Highlight Rows, then click two times on the button icon (Located on toolbar) that increases font size
•	Step 5:  Verify the font size increased by one “step” for each number
Typed Value	Expected Font Size
18	22
20	24
22	26
24	28
26	32
28	36
•	Step 6:  Highlight Rows, then click one time on the button icon (Located on toolbar) that decreases font size
Typed Value	Expected Font Size
18	18
20	20
22	22
24	24
26	26
28	28

TEST 3 – Verify Font Changes accordingly when Increasing by 1 for boundary values (smallest & largest values in font size range)
•	Step 1:  Open Impress
•	Step 2: Type “6, 96” on individual lines…focusing on the boundary values only
•	Step 3: Set “Font Size” to equal the number itself (for example, “6” should be set to a font size = 6 and “96” should be set to a font size = 96)
•	Step 4: Highlight Rows, then click one time on the button icon (Located on toolbar) that increases font size
•	Step 5:  Verify the font size increased by one “step” for each number
Typed Value	Expected Font Size	Notes
6	7	
96	105.5	Since this test is challenging the highest number listed on the range, I do not know truly what the next font size should be.  I am assuming that the increased font size displayed is the expected result and working by design.
•	Step 6:  Highlight Rows, then click one time on the button icon (Located on toolbar) that decreases font size
Typed Value	Expected Font Size	Actual Results	Notes
6	6	6 (PASS)	
96	96	95(FAIL)
	The number 96 should have returned to the original font size that was set at 96.  Instead, the font size shows as “95”

TEST 4 – Verify Font Changes accordingly when Increasing by 2 for boundary values (smallest & largest values in font size range)
•	Step 1:  Open Impress
•	Step 2: Type “6, 96” on individual lines…focusing on the boundary values only
•	Step 3: Set “Font Size” to equal the number itself (for example, “6” should be set to a font size = 6 and “96” should be set to a font size = 96)
•	Step 4: Highlight Rows, then click two times on the button icon (Located on toolbar) that increases font size
•	Step 5:  Verify the font size increased by one “step” for each number
Typed Value	Expected Font Size	Notes
6	8	
96	116.1	Since this test is challenging the highest number listed on the range, I do not know truly what the next font size should be.  I am assuming that the increased font size displayed is the expected result and working by design.
•	Step 6:  Highlight Rows, then click one time on the button icon (Located on toolbar) that decreases font size
Typed Value	Expected Font Size	Actual Results	Notes
6	6	7 (FAIL)	The number should have return to 6, but value from 4.9 to 7 and skipped the font size 5.4
96	96	94 (FAIL)	The number 96 should have returned to the original font size that was set at 96.  Instead, the font size shows as “95”

Follow Up Testing:
 I was successful in replicating the defect in version 4.1.1 of Open Office Impress using the following O/S
•	Windows 7 Enterprise
•	Processors: Intel (R) Core i5-5300 CPU@ 2.30GHz
•	Memory(RAM) :8.00 GB
•	System: 64-bit Operating System

Some other follow up tests may include:
•	Testing on different versions of Open Office that are still supported
•	Testing on different versions of Open Office with Windows Operating Systems 
•	Testing competitive app (ie, MS Power Point) might be a good test to compare quality and behaviors against.

Evaluation: 

The reporter was successfully replicating and documenting is steps.  His instructions were clear and easy to follow.
Comment 4 gwillia3 2017-05-13 01:00:40 UTC
Created attachment 86079 [details]
Screenshots of issue 126248