Issue 103348 - Format Default on selection should not reset paragraph properties
Summary: Format Default on selection should not reset paragraph properties
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: OOo 3.0.1
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2009-07-06 10:30 UTC by ftack
Modified: 2017-05-20 11:11 UTC (History)
1 user (show)

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


Attachments
Before “default formatting (35.53 KB, text/plain)
2010-02-07 04:13 UTC, yyang2010
no flags Details
After “Default Formatting” (96.98 KB, text/plain)
2010-02-07 04:13 UTC, yyang2010
no flags Details
Before change the row spacing of highlight part on Microsoft PowerPoint (70.66 KB, text/plain)
2010-02-07 04:14 UTC, yyang2010
no flags Details
After change the row spacing of highlight part on Microsoft PowerPoint (115.02 KB, text/plain)
2010-02-07 04:15 UTC, yyang2010
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ftack 2009-07-06 10:30:06 UTC
Steps to reproduce the problem

On a blank presentation, enter a text box. Using Format, paragraph, apply some
paragraph formatting, e.g. Indent - before text: 1 cm. Apply some text formatting.

Select a few words of the text, then choose "Format - default"

Expected behaviour: Format - default resets the properties of the selected text
to the default.

Observed behaviour: Paragraph properties are also reset.

Paragraph properties should be reset if no text is selected, or if the whole
paragraph is selected. Paragraph properties should not be reset if the user
wants to reset formatting of selected text.

This is how it works in writer, and how it should work in Impress.
Comment 1 wolframgarten 2009-07-10 10:10:48 UTC
Sorry, not reproducible. What I do:
New impress doc,
insert a textbox with the texttool from drawing toolbar.
Insert three lines of text using return.
Select the textbox (green handles).
Format/Paragraph, set indent before text to 1, -> all lines get shifted right.
Select the 2nd line in edit mode (inverse text color).
Format/Default formatting: only the 2nd line shifts to the left again.
Comment 2 ftack 2009-07-10 14:19:12 UTC
In one of your paragraphs, format a few words e.g. bold. Then, highlight one of
these words to remove the direct character formatting again using "Format -
default". However, rather than removing only the direct character formatting,
you are also resetting the formatting of the paragraph.

Expected behaviour: when one or a few words are selected and "Format - Default"
is choosen, only the selection (= a few words, not the paragraph) should be
affected (similar as how it works in writer).
Comment 3 wolframgarten 2009-07-10 14:51:21 UTC
Still works here as expected. Which OS do you use? Is it a real OOo version or
from some other distributor?
Comment 4 ftack 2009-07-11 14:49:51 UTC
This is the OOo version that is packed with Ubuntu 9.04 (Jaunty Jackelope):
OOO300m15 (Build:9379).

I am sure we are misunderstanding each other, now that I re-read your second reply.

[quote]
Select the 2nd line in edit mode (inverse text color).
Format/Default formatting: only the 2nd line shifts to the left again.
[/quote]

NONE of the lines should shift to the left again. The indent of the line is
paragraph formatting. If only a few characters in a paragraph are selected
(inverse text color), the paragraph formatting should NOT be reset on choosing
"Format - default". Only the character formatting of the selected text should be
affected.

Thus, in your example: the line should NOT shift to the left again.

I am now including very specific steps to illustrate the issue, which should
allow a good understanding

1) On a blank presentation, enter a text box. Enter three lines, followed by
<enter>, e.g  "This is the first line", "This is the second line", "This is the
third line". Press "Esc" such that we have the green handles.
2) Format/Paragraph, set indent before text to 10 mm (or 1 i), -> all lines get
shifted right.
3) Highlight the second sentence, format as bold
4) In the second sentence, highlight only "This is the", select "Format default".

Expected behaviour: direct formatting (in this case Bold) is removed.
Observed behaviour: in addition to removing direct formatting, the command
removes direct formatting of the entire paragraph (paragraph formatting), even
though only a few words of the paragraph were selected.
Comment 5 sanilgandhi 2009-09-03 04:31:51 UTC
Sorry I was not able to reproduce the bug.
I tried this couple of times on different operating system like Windows Vista and 
Windows XP but was not able to replicate it.
What I did was 
1) Select new document.
2) Entered a text box.
3) Did set before text to 1 cm.
4)Then selected few lines and set its properties to default.
But What I found was only selected portion properties where reset.
Comment 6 sanilgandhi 2009-09-03 04:33:34 UTC
Sorry I was not able to reproduce the bug.
I tried this couple of times on different operating system like Windows Vista and 
Windows XP but was not able to replicate it.
What I did was 
1) Select new document.
2) Entered a text box.
3) Did set before text to 1 cm.
4)Then selected few lines and set its properties to default.
But What I found was only selected portion properties where reset.
Comment 7 ftack 2009-09-03 11:39:08 UTC
It is clear that there is a misunderstanding. I also reproduce the issue on OOo
3.1.1. on Windows XP: "format - default" on a selection of a few words of the
text does also reset the paragraph's "Indent and spacing" setting, while it
should only reset the character properties of the selected characters. In
Writer, this works as expected.

Anyway, I cannot be more clear than I have been, so feel free to close this issue.
Comment 8 cemkaner 2009-09-09 10:20:24 UTC
This behavior is easily reproduced. 
(1) Create a new presentation. I create the simplest case, an empty presentation
(from the presentation wizard, see the blank preview and click Create)
(2) Select the Title Slide as the layout. Text in the main text area should be
centered.
(3) Type "This is the title slide" and then apply a paragraph level format (left
justify it) and a text level format (make "title" bold.
(4) Within the boldfaced word "title" select only the interior characters, "itl"
(5) Click Format | Default Formatting.

Result: (a) the "itl" gets unboldfaced and the surrounding t and e in "title"
stay boldfaced. This is what we would expect from the online help ("Default
Formatting -- Removes direct formatting and formatting by character styles from
the selection.")

Result (b) In addition, the paragraph, "This is the title slide" reverts back to
centered from left-justified, the default layout for the title slide.

So Format | Default sets both the paragraph settings back to default and the
individual character settings back to default. 

The report expresses surprise that the paragraph settings have been reset.

Now go to Writer, create a new blank document. The first line is by default
left-justified. Type "This is a title." Center it. Boldface "title" and then
select "itl". Click on Format | Default Formatting. The "itl" is unboldfaced but
the title stays centered. Thus, character-level formatting is eliminated but
paragraph-level formatting is not changed back to the default

This is a clear inconsistency between Writer and Impress.

This does not strike me as a very serious bug, but I think that either Writer or
Impress is working incorrectly.
Comment 9 cemkaner 2009-09-09 10:25:05 UTC
Sorry, forgot some config information. I am working on OOo-deve 3.2.0
DEV300m55(Build:9418) on a dell Precision M6300 laptop running 32-bit Windows
XP. I downloaded my copy of OOo directly from the OpenOffice site, so this is
presumably a real (dev) OOo distribution not one that was customized by another
distributor. 
Comment 10 ftack 2009-09-09 11:32:22 UTC
Thank you for corroborating this issue.

The correct behaviour is in my opinion the one of Writer. It seems logical that
yuo do not intent to reset paragraph formatting if you only selected a few
characters.
Comment 11 yyang2010 2010-02-07 04:03:55 UTC
I have already replicated this failure successfully. 
Configuration information:
OOo version: 3.1
Sony VAIO VGN FW 590 laptop
Operating system: Win 7
Steps to replicate the failure:
•	Create a new presentation in Open Office. 
•	Choose “Title, 2 Text Blocks” as layout.   Any layout other than 
default layout. ( for example I chose Title, 2 Text Blocks layout.)
•	Copy a paragraph from the webpage and paste it into both the two 
textboxes in the Open Office. This paragraph has to be same in both the 
textboxes.
•	Highlight the whole paragraph from the left textbox and select Format-
>Paragraph. Change the Line spacing into double. 
•	I clearly see that the Line spacing of the whole paragraph in the left 
textbox has already changed into double.
•	Highlight part of one sentence in the left text box. Select Format-
>Default Formatting
Expectation:  As we know, the default row spacing of Open Office is single. So 
my expectation is that row spacing of highlight part of sentence changes into 
single but other parts of paragraph in the left textbox don’t change. 
Result:  The row spacing of whole paragraph in the left text box (both the 
highlighted part and unhighlighted part) changes into single. 
Follow Up Test
I am not sure that this is a bug so I test the same situation on the Microsoft 
Office.
Microsoft Office version: Office 2003 Chinese
Steps to replicate the failure on Microsoft Office:
•	Create a new presentation on Microsoft PowerPoint.
•	Choose the same layout I chose on Open Office.
•	Copy the same paragraph and paste them into the two textbox in 
PowerPoint.
•	Highlight the whole paragraph from the left textbox and change the row 
spacing into double.
•	 The row spacing of the whole paragraph in the left textbox has already 
changed into double. 
•	Highlight part of one sentence in the left textbox. Because there is no 
such options like “Default Formatting” in PowerPoint 2003, I have to select 
Format->Row Spacing and change the row spacing into single. 
Expectation: I expect that row spacing of highlight part of sentence changes 
into single but other parts of paragraph in the left textbox don’t change. 
Result: The row spacing of whole paragraph changes into single. 
In addition, I did more follow-up testing on Microsoft Word and got the same 
result. 
This failure does fail to achieve customer’s expectation. As a result, it is a 
bug. However, in my opinion, most users will not have   the same operations and 
they will not meet the same failure. I think   this is not a serious bug. Also, 
I think that this bug is probably hard to be fixed because it is impossible to 
set two paragraph states in one paragraph. So I think that it is better to 
defer or reject this bug.  
Comment 12 yyang2010 2010-02-07 04:13:17 UTC
Created attachment 67678 [details]
Before “default  formatting
Comment 13 yyang2010 2010-02-07 04:13:43 UTC
Created attachment 67679 [details]
After  “Default Formatting”
Comment 14 yyang2010 2010-02-07 04:14:21 UTC
Created attachment 67680 [details]
Before change the row spacing of highlight part on Microsoft PowerPoint
Comment 15 yyang2010 2010-02-07 04:15:05 UTC
Created attachment 67681 [details]
After change the row spacing of highlight part on Microsoft PowerPoint
Comment 16 wolframgarten 2010-02-19 11:45:22 UTC
Ok, I see the problem now. Reassigned.
Comment 17 Marcus 2017-05-20 11:11:24 UTC
Reset assigne to the default "issues@openoffice.apache.org".