Issue 118632 - "Scale width" feature breaks word wrap
Summary: "Scale width" feature breaks word wrap
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 3.3
Hardware: PC Windows 7
: P5 (lowest) Minor (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: saisyamala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 04:15 UTC by Joseph Casamento
Modified: 2016-05-29 15:18 UTC (History)
5 users (show)

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


Attachments
Zip file containing screenshots and sample files of scale width causing text to appear outside margins (97.37 KB, application/x-zip-compressed)
2016-05-29 02:15 UTC, Dom Nunley
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joseph Casamento 2011-11-23 04:15:26 UTC
If a multi-line block of text has its width scaled above 100%, sometimes the last line of text in a paragraph will fail to wrap correctly and extend beyond the right page boundary.

Steps to replicate:
1. Create a new document in Writer.
2. Paste in the following text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sodales nulla quis nulla aliquet faucibus. Phasellus et malesuada ante. Quisque fringilla pretium magna, quis aliquam felis vehicula ut. Nunc nec diam ac magna vehicula tristique iaculis sed augue. Donec blandit, mi et convallis malesuada, orci diam sodales purus, non feugiat augue mi eleifend elit. Fusce dolor nisl, convallis vel posuere adipiscing, fringilla non ipsum. Integer sit amet diam auctor tortor auctor tincidunt. Aenean massa velit, porta nec rhoncus ut, venenatis at magna. Integer blandit imperdiet fermentum. Nullam pharetra sollicitudin tincidunt.
3. Highlight the pasted text, and scale its width to 999% (Format-Character-Position-Scale width).
4. Observe how the last line of text extends past the right page boundary.

It would seem likely that this is caused by the word wrap feature miscalculating the width of the line when the text is scaled; further tests could be done to isolate the problem by testing blocks of text with different lengths and word breaks.
Comment 1 Jason 2012-02-02 01:50:42 UTC
Confirming that I can duplicate the results on build 9567 in Windows 7 x64.
Also of note, the text that spills out of the paper boundary is not redrawn after scrolling the page.
Comment 2 Edwin Sharp 2013-09-11 12:06:04 UTC
As given in description.

Rev. 1520602 Win 7
Comment 3 Dom Nunley 2016-05-29 02:14:35 UTC
I was able to recreate this bug under a less extreme scale width value.  I will attach a zip file containing screen shots and sample files replicating this bug.

Steps:

1. Type a few paragraphs (see sample doc)
2. Select a wider typeface such as wide latin
3. Select scale width of 550%. This will cause the text to appear outside of the margins.

I was able to replicate this bug using versions 4.1.1 and 4.1.2 of open office on Windows 10 and Windows 7 machines.
Comment 4 Dom Nunley 2016-05-29 02:15:27 UTC
Created attachment 85562 [details]
Zip file containing screenshots and sample files of scale width causing text to appear outside margins
Comment 5 orcmid 2016-05-29 15:18:51 UTC
Updated "last confirmation"

I am having difficulty appreciating the use case for such extreme applications of scale width.

Can the reporters indicate what practical cases are plagued by this problem?