You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2011/11/23 05:36:56 UTC

DO NOT REPLY [Bug 118633] New: Text indent works wrongly with large value in a large text box

https://issues.apache.org/ooo/show_bug.cgi?id=118633

             Bug #: 118633
        Issue Type: DEFECT
           Summary: Text indent works wrongly with large value in a large
                    text box
    Classification: Application
           Product: Presentation
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P5
         Component: formatting
        AssignedTo: graphicsneedsconfirm@openoffice.org
        ReportedBy: tvu.fit@gmail.com
                CC: ooo-issues@incubator.apache.org


(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.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

[Bug 118633] Text indent works wrongly with large value in a large text box

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118633

Li Feng Wang <ph...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |phoenix.wanglf@gmail.com
     Ever confirmed|0                           |1

--- Comment #4 from Li Feng Wang <ph...@gmail.com> ---
Can reproduce on trunk

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 118633] Text indent works wrongly with large value in a large text box

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118633

zzmolnar <zz...@yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zzmolnar@yahoo.co.uk

--- Comment #2 from zzmolnar <zz...@yahoo.co.uk> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 118633] Text indent works wrongly with large value in a large text box

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118633

Oliver-Rainer Wittmann (orw at apache dot org) <or...@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal

--- Comment #1 from Oliver-Rainer Wittmann (orw at apache dot org) <or...@googlemail.com> ---
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 118633] Text indent works wrongly with large value in a large text box

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118633

--- Comment #3 from zzmolnar <zz...@yahoo.co.uk> ---
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"
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.