Issue 93795 - Moving chapters in navigator is defect
Summary: Moving chapters in navigator is defect
Status: CLOSED DUPLICATE of issue 6138
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO300m5
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 20:43 UTC by g.marxen
Modified: 2008-09-12 20:22 UTC (History)
3 users (show)

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


Attachments
Example odt-file for error in navigator (15.88 KB, application/vnd.oasis.opendocument.text)
2008-09-11 20:45 UTC, g.marxen
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description g.marxen 2008-09-11 20:43:20 UTC
In navigator, you can move chapters by selecting the heading and then in
"content view" (german "Inhaltsansicht umschalten") by clicking on "Chapter up"
(german "Kapitel hoch") or "Chapter down" ("Kapitel hinunter"). The false
behaving of OOo 300 RC1 (under XP Pro SP 3 with all patches) depends on the
level of "shown heading levels" (german "Angezeigte Ãœberschriftenebenen").

If you choose in navigator only one level (only headings 1), then OOo 3 RC1
behaves false, if you select in navigator as many levels as you used in the
text, everything ist OK. 

In the attached example open navigator select in navigator "shown level" 1,
select "Ãœberschrift Kapitel 2 Ebene 1", click on "Chapter up" (german "Kapitel
hoch"). Error! Undo everything.

Then select in navigator "shown level" 3, again select "Ãœberschrift Kapitel 2
Ebene 1", click on "Chapter up" (german "Kapitel hoch"). Everything is OK. 

G. Marxen
Comment 1 g.marxen 2008-09-11 20:45:15 UTC
Created attachment 56451 [details]
Example odt-file for error in navigator
Comment 2 g.marxen 2008-09-12 10:21:58 UTC
Example (use attached file for verification):

The text has the following structure:

<text>
Ãœberschrift Kapitel 1 Ebene 1 
Ãœberschrift Kapitel 1 Ebene 2 
Paragraph A 
Ãœberschrift Kapitel 1 Ebene 2 
Paragraph B 
Ãœberschrift Kapitel 1 Ebene 3 
Paragraph C 

Ãœberschrift Kapitel 2 Ebene 1 
Ãœberschrift Kapitel 2 Ebene 2 
Paragraph D 
Ãœberschrift Kapitel 2 Ebene 2 
Paragraph E 
</text>

Ãœberschrift == Heading 
Kapitel     == Chapter 
Ebene       == Level 

If you show in navigator only headings of level 1, select 
"Ãœberschrift Kapitel 2 Ebene 2" and move this chapter up ("Kapitel hoch"), then
chapter 2 is only moved above/atop of "Ãœberschrift Kapitel 1 Ebene 3" and not
above "Ãœberschrift Kapitel 1 Ebene 1". 

It's the same behaviour in SO 8 PP11 (and I think in OOo 2.4.1). 

So the actual versions of OOo/SO and the coming OOo 3.0.0 can destroy your text.
(I found the bug working on a text with 100 pages and only per chance I saw,
that my text was disarranged. Fortunately I had a not too old backup...) 
Comment 3 michael.ruess 2008-09-12 11:51:11 UTC
I did not exactly understand your steps. When I set "only 1st Level Headings" to
be shown in Navigator, "Ãœberschrift Kapitel 2 Ebene 2" is not shown in
Navigator. When I move this via Numbering toolbar this works fine.
Did I misunderstand something?
Comment 4 g.marxen 2008-09-12 12:35:26 UTC
Sorry, I made a mistake with copy&paste. You then see in navigator 

Ãœberschrift Kapitel 1 Ebene 1 
Ãœberschrift Kapitel 2 Ebene 1 

And when in navigator I move "Ãœberschrift Kapitel 2 Ebene 1" up, in the text
chapter 2 is only moved above "Ãœberschrift Kapitel 1 Ebene 3" (Win XP Pro SP 3
and all patches) and not above "Ãœberschrift Kapitel 1 Ebene 1". 
Comment 5 michael.ruess 2008-09-12 16:43:19 UTC
Odd, also this works fine here on my OOO300m5 on WinXP.
Comment 6 andreschnabel 2008-09-12 18:02:17 UTC
confirmed on Linux (OOO300_m5) and Windows XP (OOo 2.2)

- open the example odt file
- open the navigator
- select any heading in navigator
- switch to content view in navigator
- set navigator to display 1st level headings only (2 headings will be displayed)
- select last heading in navigator ("Ãœberschrift Kapitle 2 Ebene 1")
- move chapter up using the icon in navigator

expected: 
   complete content of (former) chapter 2 is moved above (former) chapter 1.
Navigator now should display "1 Ãœberschrift Kapitel 2 Ebene 1"; "2 Ãœberschrift
Kapitel 1 Ebene 1"

result is instead:
   complete content of (former) chapter 2 is moved above (former) chapter 1.2.1
Navigator still displays "1 Ãœberschrift Kapitel 2 Ebene 1"; "2 Ãœberschrift
Kapitel 1 Ebene 1"

Simple workaround: set navigator to display headings of all levels
Comment 7 andreschnabel 2008-09-12 20:22:26 UTC
duplicate

*** This issue has been marked as a duplicate of 6138 ***
Comment 8 andreschnabel 2008-09-12 20:22:44 UTC
closed