https://bugs.documentfoundation.org/show_bug.cgi?id=157200

Gabor Kelemen (allotropia) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|RESOLVED                    |NEW
         Resolution|NOTABUG                     |---

--- Comment #4 from Gabor Kelemen (allotropia) <[email protected]> ---
Hm, I believe there is merit in the report.

This new feature was inspired from Word, and there it works a bit differently
than in Writer: 
It is possible to select a caption category and a custom style (although their
UI is kinda counter-intuitive in this area, and selecting a custom style
instantly resets the category setting to none - but it can be set again).

See attachment 184747 from bug 153090 about this: the ToF is made from two
settings: the category "ábra" (figure) and the custom style
_CustomImageCaption. The small house images description has both these
conditions true, but only one entry is added in the ToF, even after updating it
in Word. Which makes sense, it's only one paragraph in the document body.

However in Writer it's also easy to reproduce the entry duplication with
attachment 184745 : 
- Set the LO UI to German
- Open the attachment 184745
- Edit the ToF, set the Kategorie to Abb.
- OK the dialog -> ToF is updated, the first two entries are duplicated.
(the same happens in Hungarian UI and selecting the ábra Category - this
duplicates the third entry)

I think it would make sense to not duplicate ToF entries even if they match two
criteria.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: beaea2e992912b4747d790070b26371f557b1f57
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: de-DE
Calc: threaded

Note that it's possible to set up a simple TOC with similarly duplicated
entries that have both an outline level set and their para style is also
assigned to a TOC level. That is also nonsense to show and does not match what
Word does, which only shows one entry even if a paragraph matches multiple
conditions.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to