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

--- Comment #8 from FredrikL <[email protected]> ---
I found a fix for this bug but the fix has not been reported properly yet as
this is the first time ever looking at the source code and it did not seem like
the easiest thing to report the proper way.

I took help by Claude to get a fix for this bug.

There is only one line of code that needs to be changed.

Replace line 917 in source file /libreoffice/sc/source/core/data/postit.cxx

    pCaption->SetMergedItem( makeSdrTextAutoGrowWidthItem( true ) );

with

    pCaption->SetMergedItem( makeSdrTextAutoGrowWidthItem(
officecfg::Office::Calc::Content::Display::NoteAuthor::get() ) );

or if you want a comment to this change it could be changed into this instead:

// tdf#163512: Only auto-grow width when author display is enabled.
// When author is hidden the caption should use the stored note width.
    pCaption->SetMergedItem( makeSdrTextAutoGrowWidthItem(
        officecfg::Office::Calc::Content::Display::NoteAuthor::get() ) );

Do I have to report the fix the way suggested in the link below or is someone
reading this that already knows how to easily send in this fix the proper way?
https://wiki.documentfoundation.org/Development/gerrit/SubmitPatch

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

Reply via email to