[Libreoffice-bugs] [Bug 54393] Add option to prevent that Footnotes and Endnotes are always hidden together with anchor

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 19 12:19:53 UTC 2018


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

--- Comment #17 from Justin L <jluth at mail.com> ---
>For some reason, upon loading the document, the footnote is still hidden,
>even with this change.
A little more work on this bug re-enforces that this is too complicated for me
to handle.  A total hack that lets the footnote section to appear on document
load is sw/source/core/text/itrform2.cxx:

@@ SwLinePortion *SwTextFormatter::NewPortion( SwTextFormatInfo &rInf )
     {
         sal_Int32 nEnd = rInf.GetIdx();
         if ( ::lcl_BuildHiddenPortion( rInf, nEnd ) )
+        {
+            if ( rInf.GetChar( rInf.GetIdx() ) == CH_TXTATR_BREAKWORD )
+            {
+                /*pPor =*/ NewExtraPortion( rInf );
+            }
             pPor = new SwHiddenTextPortion( nEnd - rInf.GetIdx() );
+        }
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180319/60d1e9b4/attachment.html>


More information about the Libreoffice-bugs mailing list