Bug 167372 - A paragraph style is lost in a specific document with change tracking
Summary: A paragraph style is lost in a specific document with change tracking
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-03 15:31 UTC by Mike Kaganski
Modified: 2025-07-03 15:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Attachment from i#75463 (52.58 KB, application/vnd.oasis.opendocument.text)
2025-07-03 15:31 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-07-03 15:31:41 UTC
Created attachment 201645 [details]
Attachment from i#75463

Open the attachment (from i#75463). It has tracked changes.

Since commit 81273c65dd9cec5acd9464b9041f452a5481e10e the paragraph "Åbne filer" there is shown using "OOoTextBody" style. Before that, it used to have "OOoHeading1" style.

Initially I thought, that it was a proper change: it looked as if deletion of the previous paragraph somehow changed the remaining paragraph's style.

But the document's XML has this:

   <text:tracked-changes text:track-changes="false">
    <text:changed-region text:id="ct177150096">
     <text:deletion>
      <text:p text:style-name="OOoToCHead">Indhold</text:p>
     </text:deletion>
    </text:changed-region>
    <text:changed-region text:id="ct177153800">
     <text:deletion>
      <text:p text:style-name="OOoToCHead"/>
      <text:p text:style-name="OOoTextBody"/>
     </text:deletion>
    </text:changed-region>
   </text:tracked-changes>
   ...
    <text:h text:style-name="OOoHeading1" text:outline-level="1">
     <text:change text:change-id="ct177150096"/>
     <text:change text:change-id="ct177153800"/>Åbne filer</text:h>

So the "Åbne filer" paragraph is inside <text:h text:style-name="OOoHeading1">; and the removal of all other paragraph styles in ct177153800 should restore the OOoHeading1 style, it seems?