On Wed, Apr 23, 2025 at 03:40:51PM +0000, Jean-Marc Lasgouttes wrote:
> commit d961724884a01aeab661c07651a1aa7d77820afd
> Author: Jean-Marc Lasgouttes <[email protected]>
> Date:   Mon Apr 21 15:02:43 2025 +0200
> 
>     Move computation of insets dimensions in breakParagraph.
>     
>     Instead of computing all insets dimensions at the start of
>     redoParagraphs, do it in breakParagraph. This will be useful later if
>     trying to break insets on several lines.
>     
>     This change is supposed to be neutral, but is likely to introduce new
>     bugs.
>     
>     Some notes:
>     * The insets are added to the big row without computing their metrics.
>     
>     * The handling of parPos is moved to breakParagraph.
>     
>     * The code that computes the inset metrics is in redoInset. This code,
>       along with tokenizeParagraph, will evolve in the future.
> ---

If I delete a column in the attached table, I get the following message:

TextMetrics.cpp (1155): MacroContext not initialised! Going through the buffer 
again and hope the context is better then. Please report

By the way, I saw this terminal message after quitting LyX a month ago,
but couldn't figure out how to reproduce. I made a local patch to add an
assert at this point, and finally figured out how to reproduce.

Maybe it's worth turning this message into an assertion?

Scott

Attachment: macrocontext-not-initialised.23.lyx
Description: application/lyx

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to