Issue 118633 - Text indent works wrongly with large value in a large text box
Summary: Text indent works wrongly with large value in a large text box
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: formatting (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: PC Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 04:36 UTC by Truong Vu
Modified: 2013-01-29 21:47 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Truong Vu 2011-11-23 04:36:56 UTC
(Truong Vu - 11/22/2011)

In OOo-dev 3.4.0 (DEV300m106), Windows 7

In a large width text box, when I set Before Text Indent to a large value (greater than 27.00 in my test) and set After Text indent to zero, the actual indents of the paragraph are not what I set. For each value greater than 39.37" that I set to Before Text Indent, the value of Before Text Indent is set back to 39.37" but the paragraph shows in the text box differently.

Steps to Reproduce:

1.  Create a new document in Impress
2.  Set the page size to 70".
3.  Create a text box with the width 50"
4.  Type a paragraph into the text box 
5.  Set Before Text Indent to a value greater than 39.37", After Text indent to zero.
=> The value of Before Text Indent is 39.37"
=> The actual indents of the paragraph are wrong.
6. Set Before Text Indent to other value greater than 39.37",, After Text indent to zero.
=> The value of Before Text Indent is 39.37"
=> The actual indents of the paragraph are wrong and different from step 5.
7. Set Before Text Indent to other value smaller than 25,, After Text indent to zero.
The actual indents of the paragraph work fine.
Comment 1 Oliver-Rainer Wittmann 2012-06-13 12:25:25 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 2 zzmolnar 2012-06-16 06:27:08 UTC
I managed to reproduce the bug on the following environment:

OS: Linux, Ubuntu 12.04 64bit, kernel 3.2.0-24-generic
SW: OpenOffice, AOO340m1 (Build:9590) - Rev. 1327774


Reproduction steps:

1. Create a new presentation. 
   !NOTE!: An empty page with two text boxes appear.

2) Turn on the 'Ruler' in the 'View' menu -if it is not selected yet- for better observability.

3) Set the size of the page width to 70".
   (Click on 'Format' menu, select 'Page', set 'Width' to 70", click OK.)
   !NOTE!: The width of the two text boxes is changed to 63".

4) Enter text to the bigger text box.
   (Click on the text box, set the text style to justified by pressing CTRL+J, and type in at least two lines of text.)

5) Indent the typed text with 40".
   (Press CTRL+A for text selection, click on 'Format' menu, select 'Paragraph'. Set 'Indent' / 'Before text' to a value greater than 39.37".
   !NOTE!: The actual indentation of the paragraph is incorrect.
   !NOTE!: 'Before text' value is reset to 39.37".

6) Re-indent the text to a value, not greater than 25".
   !NOTE!: The actual indentation of the paragrap is correct.
   !NOTE!: 'Before text' shows correct value.

+++++++++++++++++++++++
Additional observation:

I found that incorrect indentation itself can already be achieved once one indents the paragraph with greater than 25.80". However the failure appearance (behavior of ) is slightly different, 'Before text' box shows correct value at recheck until it was set greater than 39.37". Just do the following:

*) Repeat steps 1-4 as above.
5) Indent the typed text with a value, greater than 25.80" but smaller than 39.38".
   !NOTE!: The actual indentation of the paragraph is incorrect.
   !NOTE!: 'Before text' value still shows the value we set.

++++++++++++++++++++++++++++++
Guess of the underlying fault:

I made a couple of tests and realized by checking the values of Ruler, that the paragraph is indented to the reminder of division of 'Before text' value by that 25.80.

Example:
If 'Before text' is set to 100", as a result the paragraph is indented to 22.80".
And 100" = (3 x 25.80") + 22.60"

Based on this fact, I assume the cause of incorrect indentation is the overflow of some variable that is assigned to the 'Before text' box.
Comment 3 zzmolnar 2012-06-16 06:35:44 UTC
There's a typoo in my example, correctly:

...
Example:
If 'Before text' is set to 100", as a result the paragraph is indented to 22.60".
And 100" = (3 x 25.80") + 22.60"
...
Comment 4 Li Feng Wang 2012-09-07 03:03:48 UTC
Can reproduce on trunk