Bug 100958 - [EDITING] Cannot demote list item
Summary: [EDITING] Cannot demote list item
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2016-07-16 16:20 UTC by szotsaki
Modified: 2025-04-19 05:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example slide which was extracted from a PPTX some time ago (156.29 KB, application/vnd.oasis.opendocument.presentation)
2016-07-16 16:20 UTC, szotsaki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description szotsaki 2016-07-16 16:20:18 UTC
Created attachment 126238 [details]
Example slide which was extracted from a PPTX some time ago

1. Open the attached .odp and click on the line which says "Try to demote".
2. Click on the demote button (which is not greyed out).

Clicking on it does nothing.

OS: openSUSE Leap 42.1, x64.
Comment 1 Buovjaga 2016-07-18 06:50:55 UTC
Demote is greyed out for me.. Setting to NEW in any case.

64-bit, KDE Plasma 5
Build ID: 5.1.4.2 Arch Linux build-1
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: ab1b351840160655a9f0caedbb35e9fdf203c5a0
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on July 16th 2016
Comment 2 QA Administrators 2017-09-01 11:20:40 UTC Comment hidden (obsolete)
Comment 3 szotsaki 2018-03-07 18:10:43 UTC
I cannot demote any items. The button is not greyed out.

Reproducible with 
Version: 6.0.2.1
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: hu-HU (hu_HU); Calc: CL
Comment 4 QA Administrators 2019-03-08 03:39:54 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2021-03-08 04:01:50 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-03-09 03:26:26 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2025-04-19 03:10:46 UTC Comment hidden (obsolete)
Comment 8 BogdanB 2025-04-19 05:23:55 UTC
Indeed, using the existing file it can NOT be demoted.

But, what I have notice is if I am starting a new element after Line 2, and demote it and save, it will work. Mayne that element was not created correct. 

Buovjaga and szotsaki, could you please try that? Maybe the internal structure for that element was created somehow different, and it is not a bug.
Comment 9 Buovjaga 2025-04-19 05:52:37 UTC
(In reply to BogdanB from comment #8)
> Indeed, using the existing file it can NOT be demoted.
> 
> But, what I have notice is if I am starting a new element after Line 2, and
> demote it and save, it will work. Mayne that element was not created
> correct. 
> 
> Buovjaga and szotsaki, could you please try that? Maybe the internal
> structure for that element was created somehow different, and it is not a
> bug.

Good point: the structure is like so:

<draw:custom-shape draw:name="Shape 140" draw:style-name="gr1" draw:text-style-name="P5" draw:layer="layout" svg:width="13.393cm" svg:height="8.808cm" svg:x="6.607cm" svg:y="4.612cm">
  <text:list text:style-name="L1">
    <text:list-item>
      <text:p text:style-name="P1">
        <text:span text:style-name="T1">Line 1</text:span>
      </text:p>
    </text:list-item>
  </text:list>
  <text:list text:style-name="L2">
    <text:list-item>
      <text:list>
        <text:list-item>
          <text:p text:style-name="P2">
            <text:span text:style-name="T2">Line 2</text:span>
          </text:p>
        </text:list-item>
      </text:list>
    </text:list-item>
  </text:list>
  <text:list text:style-name="L3">
    <text:list-item>
      <text:p text:style-name="P3">
        <text:span text:style-name="T3">Try to demote</text:span>
      </text:p>
    </text:list-item>
  </text:list>
  <text:list text:style-name="L4">
    <text:list-item>
      <text:list>
        <text:list-header>
          <text:p text:style-name="P4">
            <text:span text:style-name="T2"/>
          </text:p>
        </text:list-header>
      </text:list>
    </text:list-item>
  </text:list>

So each item *is in a separate list*. When we add a new item as Bogdan said, it is created as a sibling item inside one of the lists, so demote works in that context.

Let's close as invalid.