[LyX/master] Remove unused #include

2024-04-28 Thread Jean-Marc Lasgouttes
commit df19a709008e706c40c3b81e6a42f61bbef745ef Author: Jean-Marc Lasgouttes Date: Sun Apr 28 12:33:33 2024 +0200 Remove unused #include --- src/support/filetools.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index a2eba83eef

[LyX/master] Move Lexer to support/ directory (and lyx::support namespace)

2024-04-28 Thread Jean-Marc Lasgouttes
commit 2660df9b99b8059856b931c22f53ee8f714a1d8e Author: Jean-Marc Lasgouttes Date: Sun Apr 28 00:24:46 2024 +0200 Move Lexer to support/ directory (and lyx::support namespace) This requires quite a bit of trivial code shuffling. src/Buffer.cpp| 2 +- src

[LyX/2.4.1-devel] Set buffer_ correctly when inseting a math macro over a selection

2024-04-25 Thread Jean-Marc Lasgouttes
commit 13a34d6cd1bbf2a93d5b51624de7085d594cf8fa Author: Jean-Marc Lasgouttes Date: Thu Apr 25 14:28:10 2024 +0200 Set buffer_ correctly when inseting a math macro over a selection The code that handles this special macro insertion (in Cursor::mathMacroClose())) is very weird

[LyX/master] Set buffer when creating a MathData from parts of another one

2024-04-25 Thread Jean-Marc Lasgouttes
commit ed2f3cb9cfa1e871d48a92d41791a77bd218ab67 Author: Jean-Marc Lasgouttes Date: Thu Apr 25 17:13:15 2024 +0200 Set buffer when creating a MathData from parts of another one This is triggered by selecting part of an equation under Xcb platform (x11). Indeed, the current

[LyX/master] Set buffer_ correctly when inseting a math macro over a selection

2024-04-25 Thread Jean-Marc Lasgouttes
commit b45a957929a78cefc729a0fa984214eb83357d42 Author: Jean-Marc Lasgouttes Date: Thu Apr 25 14:28:10 2024 +0200 Set buffer_ correctly when inseting a math macro over a selection The code that handles this special macro insertion (in Cursor::mathMacroClose())) is very weird

[LyX/master] typo

2024-04-25 Thread Jean-Marc Lasgouttes
commit af3521881c209fa0019414096334057f3b6e8c75 Author: Jean-Marc Lasgouttes Date: Thu Apr 25 14:27:22 2024 +0200 typo --- src/mathed/MathRow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp index b8d8f63d8e

[LyX/master] Autotools: optimize with -Og when debugging

2024-04-25 Thread Jean-Marc Lasgouttes
commit 623cc13b60bc7345ad8a45bb1a6ab95e16dba6b0 Author: Jean-Marc Lasgouttes Date: Thu Apr 25 12:30:48 2024 +0200 Autotools: optimize with -Og when debugging When debug (-g) is enabled (default when compiling a development version), the existing -O optimization level

[LyX/master] Force a Buffer * argument to math insets constructor

2024-04-25 Thread Jean-Marc Lasgouttes
commit c013799887eb5c330f3cff4d51542028683fe1bb Author: Jean-Marc Lasgouttes Date: Wed Apr 24 15:07:15 2024 +0200 Force a Buffer * argument to math insets constructor Make sure that math insets have a proper buffer. To this end, make the Buffer* parameter of InsetMath

[LyX/master] Force a Buffer * argument to MathData constructor

2024-04-25 Thread Jean-Marc Lasgouttes
commit 57d713065545ac53a62a641d12a8b8c2c62c22fc Author: Jean-Marc Lasgouttes Date: Wed Apr 24 12:04:23 2024 +0200 Force a Buffer * argument to MathData constructor In order to ensure that MathData objects have a valid buffer, the default MathData() constructor is deleted

[LyX/master] Try to make sure that math insets have a properly set buffer_ member

2024-04-22 Thread Jean-Marc Lasgouttes
commit f3c5ff9cb72c5231f1e1e81452e67d6f12dadecb Author: Jean-Marc Lasgouttes Date: Fri Oct 14 22:42:21 2022 +0200 Try to make sure that math insets have a properly set buffer_ member Set the buffer of contents that is added to a MathData object through MathData::insert() (both

[LyX/2.4.1-devel] Sanitize cursors after a buffer has been reloaded

2024-04-22 Thread Jean-Marc Lasgouttes
commit 21096f696a0de7a95b0a12b1d9530c3b4aa399e7 Author: Jean-Marc Lasgouttes Date: Tue Apr 16 11:45:09 2024 +0200 Sanitize cursors after a buffer has been reloaded When a buffer is reloaded, its content may remain the same, but the memory allocation is new, so that the inset

[LyX/2.4.x] small changes backported from master

2024-04-22 Thread Jean-Marc Lasgouttes
commit 3941c487e85a5c2a2b7897c9a6da3ac2d00b1da2 Author: Jean-Marc Lasgouttes Date: Fri Apr 19 17:16:00 2024 +0200 small changes backported from master --- INSTALL | 6 +++--- README | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/INSTALL b/INSTALL index

[LyX/2.4.1-devel] Document biginset branch

2024-04-21 Thread Jean-Marc Lasgouttes
commit 9b4b05e64ea0e692035052e5c5797545a6915b5a Author: Jean-Marc Lasgouttes Date: Sun Apr 21 22:26:41 2024 +0200 Document biginset branch --- status.24x | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/status.24x b/status.24x index 350e94d4da..78494339b1 100644

[LyX/master] Small change

2024-04-19 Thread Jean-Marc Lasgouttes
commit e631f908a71336e4ff237fec91ced73eed3dba24 Author: Jeân-Marc Lâsgöuttes Date: Fri Apr 19 17:51:29 2024 +0200 Small change --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 5621c68b9d..39d5aba7e4 100644 --- a/README +++ b/README @@

[LyX/master] small change

2024-04-19 Thread Jean-Marc Lasgouttes
commit abc8d49acd507089025b93976ae0fde10cb99c7f Author: Jean-Marc Lasgouttes Date: Fri Apr 19 17:24:10 2024 +0200 small change --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index b6b7a2ffb3..5621c68b9d 100644 --- a/README +++ b/README

[LyX/2.4.1-devel] Always repaint the gray area below main inset

2024-04-18 Thread Jean-Marc Lasgouttes
commit c9f5f34fd703117981cc198ba910328b93e43e99 Author: Jean-Marc Lasgouttes Date: Tue Apr 16 23:55:24 2024 +0200 Always repaint the gray area below main inset Now that SingleParUpdate does not always lead to a full screen update when the height of the paragraph changes (see

[LyX/2.4.1-devel] Do not compute metrics at each preview when loading file

2024-04-18 Thread Jean-Marc Lasgouttes
commit 15eef6a2c7cdca128a3476f2109371f35b372eba Author: Jean-Marc Lasgouttes Date: Thu Dec 21 16:33:06 2023 +0100 Do not compute metrics at each preview when loading file With the branch-test.lyx file from #12297, loading takes forever when previews are activated

[LyX/2.4.1-devel] Improve the code that limits scrolling at top/bottom

2024-04-18 Thread Jean-Marc Lasgouttes
commit e5aaa64b63ab0a0090df90b034925decd1c84061 Author: Jean-Marc Lasgouttes Date: Fri Nov 17 18:30:37 2023 +0100 Improve the code that limits scrolling at top/bottom The most visible part of this commit is the move of part of BufferView::updateMetrics to a new TextMetrics

[LyX/2.4.1-devel] Introduce new helpers ParagraphMetrics::top/bottom

2024-04-18 Thread Jean-Marc Lasgouttes
commit b1a0983570b01348685fbcb3070fc071f1b40c15 Author: Jean-Marc Lasgouttes Date: Tue Jul 25 16:31:13 2023 +0200 Introduce new helpers ParagraphMetrics::top/bottom This avoids code with position/ascent/descent that is difficult to follow. No change in function intended

[LyX/2.4.1-devel] Implement quick scroll

2024-04-18 Thread Jean-Marc Lasgouttes
commit 2434a3a28848669f7d8463bef70c668e0d6e615a Author: Jean-Marc Lasgouttes Date: Mon Jul 24 23:23:40 2023 +0200 Implement quick scroll Replace flag parameter for updateMetrics() by a `force' boolean. When it is false, the method keeps the metrics of paragraphs that are still

[LyX/2.4.1-devel] Remove some redundant calls to updatePosCache

2024-04-18 Thread Jean-Marc Lasgouttes
commit e51f9d9f885bdf76ba6a20671d0f730d6be87483 Author: Jean-Marc Lasgouttes Date: Mon Jul 24 15:35:16 2023 +0200 Remove some redundant calls to updatePosCache The setting of insets positions was done twice in updateMetrics. When one of the paragraph is a huge branch, this can

[LyX/2.4.1-devel] In the no-draw phase, do not cache the positions of not visible insets

2024-04-18 Thread Jean-Marc Lasgouttes
commit 5e1c414a21cd5d3345e7d3ff9181d7fa08c86830 Author: Jean-Marc Lasgouttes Date: Mon Jul 24 17:53:16 2023 +0200 In the no-draw phase, do not cache the positions of not visible insets This can make a big difference for a very large branch that contains lots of equations

[LyX/2.4.1-devel] Enable Update::SinglePar in nested insets too

2024-04-18 Thread Jean-Marc Lasgouttes
commit 13c7fd78c6c4876330598e89146ef4c7e44998bd Author: Jean-Marc Lasgouttes Date: Mon Jul 17 14:43:29 2023 +0200 Enable Update::SinglePar in nested insets too The idea of single par update is to try to re-break only the paragraph containing the cursor (if this paragraph

[LyX features/biginset] Always repaint the gray area below main inset

2024-04-17 Thread Jean-Marc Lasgouttes
commit 3953698d9af73e647280308a75b7716d7054955c Author: Jean-Marc Lasgouttes Date: Tue Apr 16 23:55:24 2024 +0200 Always repaint the gray area below main inset Now that SingleParUpdate does not always lead to a full screen update when the height of the paragraph changes (see

[LyX/master] Always repaint the gray area below main inset

2024-04-17 Thread Jean-Marc Lasgouttes
commit 1a11abe4394272f521cd63993e426c136e0e9b6c Author: Jean-Marc Lasgouttes Date: Tue Apr 16 23:55:24 2024 +0200 Always repaint the gray area below main inset Now that SingleParUpdate does not always lead to a full screen update when the height of the paragraph changes (see

[LyX/master] Sanitize cursors after a buffer has been reloaded

2024-04-16 Thread Jean-Marc Lasgouttes
commit c1fd622c51752d790576600f5911813ff8dac3fa Author: Jean-Marc Lasgouttes Date: Tue Apr 16 11:45:09 2024 +0200 Sanitize cursors after a buffer has been reloaded When a buffer is reloaded, its content may remain the same, but the memory allocation is new, so that the inset

[LyX features/biginset] Fixup 'Avoid metrics computation on resize when width did not change'

2024-04-10 Thread Jean-Marc Lasgouttes
commit 9fa3a90f2672b2d454f0cd24f36265151520f5c3 Author: Jean-Marc Lasgouttes Date: Wed Apr 10 12:31:12 2024 +0200 Fixup 'Avoid metrics computation on resize when width did not change' When the width of the window did not change, computing full metrics is not necessary

[LyX/master] Fixup 'Avoid metrics computation on resize when width did not change'

2024-04-10 Thread Jean-Marc Lasgouttes
commit 83e7c74f6b4ce06936f11a5239a6c88f019a43ff Author: Jean-Marc Lasgouttes Date: Wed Apr 10 12:31:12 2024 +0200 Fixup 'Avoid metrics computation on resize when width did not change' When the width of the window did not change, computing full metrics is not necessary

[LyX/master] Comment out too verbose debug output

2024-04-10 Thread Jean-Marc Lasgouttes
commit c3fb9fe95f02319ed8dd4bfc1f2fe306819a3d90 Author: Jean-Marc Lasgouttes Date: Wed Apr 10 14:06:30 2024 +0200 Comment out too verbose debug output --- src/TextMetrics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp

[LyX/2.4.x] Do not include in InsetInfo.h

2024-04-08 Thread Jean-Marc Lasgouttes
commit 89afdb050f2b59aeed09bb199cb698d904e2144d Author: Jean-Marc Lasgouttes Date: Thu Apr 4 17:35:54 2024 +0200 Do not include in InsetInfo.h This is used by getDate/getTime, which actually should not be InsetInfoParams methods, but functions in anonymous namespace

[LyX/2.4.x] Fix compilation with msvc 2019

2024-04-08 Thread Jean-Marc Lasgouttes
commit 25f11742036f762aa1a83d377bc416a519bca6ef Author: Jean-Marc Lasgouttes Date: Sun Apr 7 20:41:13 2024 +0200 Fix compilation with msvc 2019 'uint' is not defined, 'unsigned int' is better. (cherry picked from commit c7f53afd319fc9028be74f8949cec00063972462) --- src

[LyX/master] Fix compilation with msvc 2019

2024-04-07 Thread Jean-Marc Lasgouttes
commit c7f53afd319fc9028be74f8949cec00063972462 Author: Jean-Marc Lasgouttes Date: Sun Apr 7 20:41:13 2024 +0200 Fix compilation with msvc 2019 'uint' is not defined, 'unsigned int' is better. --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[LyX features/biginset] Fix compilation with msvc 2019

2024-04-07 Thread Jean-Marc Lasgouttes
commit 01355ab9b630c358c41aa72508b1604460766f60 Author: Jean-Marc Lasgouttes Date: Sun Apr 7 20:41:13 2024 +0200 Fix compilation with msvc 2019 'uint' is not defined, 'unsigned int' is better. --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[LyX features/biginset] Fix crash when deleting inset with backspace

2024-04-07 Thread Jean-Marc Lasgouttes
commit b9e7754c932b014e019534f8e7aaf46797537e64 Author: Jean-Marc Lasgouttes Date: Sun Apr 7 19:23:12 2024 +0200 Fix crash when deleting inset with backspace See description here: https://marc.info/?l=lyx-devel=171243435229412=2 cutSelectionHelper did not request

[LyX/master] Fix crash when deleting inset with backspace

2024-04-07 Thread Jean-Marc Lasgouttes
commit 89901123c579c6c7dbd1aecd092d62c3a0a3db24 Author: Jean-Marc Lasgouttes Date: Sun Apr 7 19:23:12 2024 +0200 Fix crash when deleting inset with backspace See description here: https://marc.info/?l=lyx-devel=171243435229412=2 cutSelectionHelper did not request

[LyX/master] Indicate that, by default, mouse LFUN do not require a metrics update

2024-04-05 Thread Jean-Marc Lasgouttes
commit 9fd397ac1cb8c97d9b3058a669a045db0cceee1c Author: Jean-Marc Lasgouttes Date: Mon Nov 27 17:50:40 2023 +0100 Indicate that, by default, mouse LFUN do not require a metrics update This is done easily in LyXAction.cpp. Remember that, by default, each function is supposed

[LyX/master] Avoid metrics computation on resize when width did not change

2024-04-05 Thread Jean-Marc Lasgouttes
commit f7218cec188cad2dbf68de47ad4345fcddf1bdb8 Author: Jean-Marc Lasgouttes Date: Mon Nov 27 11:46:52 2023 +0100 Avoid metrics computation on resize when width did not change Entering a math inset triggers a work area reize because the math toobars appear automatically

[LyX/master] Avoid full metrics computation when entering/leaving inset

2024-04-05 Thread Jean-Marc Lasgouttes
commit 73678dcde977802d5ff3ae07f0226484041fff48 Author: Jean-Marc Lasgouttes Date: Mon Nov 27 15:57:09 2023 +0100 Avoid full metrics computation when entering/leaving inset Annotate function LFUN_FINISHED_xxx to indicate that they do not require a full metrics computation

[LyX/master] Avoid some full metrics computations related to math previews

2024-04-05 Thread Jean-Marc Lasgouttes
commit 5e8578837fea0321998eac04222102986261666d Author: Jean-Marc Lasgouttes Date: Mon Nov 27 15:13:56 2023 +0100 Avoid some full metrics computations related to math previews When entering/leaving a math hull inset, a Update::Force flag was set, in case the metrics

[LyX/master] Update PAINTING_ANALYSIS

2024-04-05 Thread Jean-Marc Lasgouttes
commit a23522073c8bb2cd06ddc7cc564e9c78f868a86d Author: Jean-Marc Lasgouttes Date: Mon Nov 20 17:24:09 2023 +0100 Update PAINTING_ANALYSIS --- development/PAINTING_ANALYSIS | 62 +-- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git

[LyX/master] Reduce metrics updates from 4 to 1 when loading file

2024-04-05 Thread Jean-Marc Lasgouttes
commit 1d1f95d2ed0bf02e8a9cd9685ed4ba3365b9b493 Author: Jean-Marc Lasgouttes Date: Wed Nov 22 12:07:51 2023 +0100 Reduce metrics updates from 4 to 1 when loading file The number of metrics updates when loading file and showing it in a new work area is unreasonable

[LyX/master] Implement quick scroll

2024-04-05 Thread Jean-Marc Lasgouttes
commit 08010c6a5e425b3f2d0d625536e3a571c90a0482 Author: Jean-Marc Lasgouttes Date: Mon Jul 24 23:23:40 2023 +0200 Implement quick scroll Replace flag parameter for updateMetrics() by a `force' boolean. When it is false, the method keeps the metrics of paragraphs that are still

[LyX/master] Do not compute metrics at each preview when loading file

2024-04-05 Thread Jean-Marc Lasgouttes
commit 244969330108a89f4be93d3b2eb9024bdb756204 Author: Jean-Marc Lasgouttes Date: Thu Dec 21 16:33:06 2023 +0100 Do not compute metrics at each preview when loading file With the branch-test.lyx file from #12297, loading takes forever when previews are activated

[LyX/master] Remove some redundant calls to updatePosCache

2024-04-05 Thread Jean-Marc Lasgouttes
commit d19ade9a611d3ecf6840c5eb43291cb268ad6f4f Author: Jean-Marc Lasgouttes Date: Mon Jul 24 15:35:16 2023 +0200 Remove some redundant calls to updatePosCache The setting of insets positions was done twice in updateMetrics. When one of the paragraph is a huge branch, this can

[LyX/master] Improve the code that limits scrolling at top/bottom

2024-04-05 Thread Jean-Marc Lasgouttes
commit f15d2ebf3819913114ab93d1ff7e140cb26b03d5 Author: Jean-Marc Lasgouttes Date: Fri Nov 17 18:30:37 2023 +0100 Improve the code that limits scrolling at top/bottom The most visible part of this commit is the move of part of BufferView::updateMetrics to a new TextMetrics

[LyX/master] In the no-draw phase, do not cache the positions of not visible insets

2024-04-05 Thread Jean-Marc Lasgouttes
commit 7f85024f80601b15634fb5e771bba51435ad429f Author: Jean-Marc Lasgouttes Date: Mon Jul 24 17:53:16 2023 +0200 In the no-draw phase, do not cache the positions of not visible insets This can make a big difference for a very large branch that contains lots of equations

[LyX/master] Introduce new helpers ParagraphMetrics::top/bottom

2024-04-05 Thread Jean-Marc Lasgouttes
commit 0b6105b9245350e428c73deee88af2cd7c0d4732 Author: Jean-Marc Lasgouttes Date: Tue Jul 25 16:31:13 2023 +0200 Introduce new helpers ParagraphMetrics::top/bottom This avoids code with position/ascent/descent that is difficult to follow. No change in function intended

[LyX/master] Enable Update::SinglePar in nested insets too

2024-04-05 Thread Jean-Marc Lasgouttes
commit 9a96726bcd06d565c3027011fea954656aa46668 Author: Jean-Marc Lasgouttes Date: Mon Jul 17 14:43:29 2023 +0200 Enable Update::SinglePar in nested insets too The idea of single par update is to try to re-break only the paragraph containing the cursor (if this paragraph

[LyX features/biginset] Avoid full metrics computation when entering/leaving inset

2024-04-05 Thread Jean-Marc Lasgouttes
commit 73678dcde977802d5ff3ae07f0226484041fff48 Author: Jean-Marc Lasgouttes Date: Mon Nov 27 15:57:09 2023 +0100 Avoid full metrics computation when entering/leaving inset Annotate function LFUN_FINISHED_xxx to indicate that they do not require a full metrics computation

[LyX features/biginset] Reduce metrics updates from 4 to 1 when loading file

2024-04-05 Thread Jean-Marc Lasgouttes
commit 1d1f95d2ed0bf02e8a9cd9685ed4ba3365b9b493 Author: Jean-Marc Lasgouttes Date: Wed Nov 22 12:07:51 2023 +0100 Reduce metrics updates from 4 to 1 when loading file The number of metrics updates when loading file and showing it in a new work area is unreasonable

[LyX features/biginset] Update PAINTING_ANALYSIS

2024-04-05 Thread Jean-Marc Lasgouttes
commit a23522073c8bb2cd06ddc7cc564e9c78f868a86d Author: Jean-Marc Lasgouttes Date: Mon Nov 20 17:24:09 2023 +0100 Update PAINTING_ANALYSIS --- development/PAINTING_ANALYSIS | 62 +-- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git

[LyX features/biginset] Indicate that, by default, mouse LFUN do not require a metrics update

2024-04-05 Thread Jean-Marc Lasgouttes
commit 9fd397ac1cb8c97d9b3058a669a045db0cceee1c Author: Jean-Marc Lasgouttes Date: Mon Nov 27 17:50:40 2023 +0100 Indicate that, by default, mouse LFUN do not require a metrics update This is done easily in LyXAction.cpp. Remember that, by default, each function is supposed

[LyX features/biginset] Introduce new helpers ParagraphMetrics::top/bottom

2024-04-05 Thread Jean-Marc Lasgouttes
commit 0b6105b9245350e428c73deee88af2cd7c0d4732 Author: Jean-Marc Lasgouttes Date: Tue Jul 25 16:31:13 2023 +0200 Introduce new helpers ParagraphMetrics::top/bottom This avoids code with position/ascent/descent that is difficult to follow. No change in function intended

[LyX features/biginset] Improve the code that limits scrolling at top/bottom

2024-04-05 Thread Jean-Marc Lasgouttes
commit f15d2ebf3819913114ab93d1ff7e140cb26b03d5 Author: Jean-Marc Lasgouttes Date: Fri Nov 17 18:30:37 2023 +0100 Improve the code that limits scrolling at top/bottom The most visible part of this commit is the move of part of BufferView::updateMetrics to a new TextMetrics

[LyX features/biginset] Avoid some full metrics computations related to math previews

2024-04-05 Thread Jean-Marc Lasgouttes
commit 5e8578837fea0321998eac04222102986261666d Author: Jean-Marc Lasgouttes Date: Mon Nov 27 15:13:56 2023 +0100 Avoid some full metrics computations related to math previews When entering/leaving a math hull inset, a Update::Force flag was set, in case the metrics

[LyX features/biginset] Avoid metrics computation on resize when width did not change

2024-04-05 Thread Jean-Marc Lasgouttes
commit f7218cec188cad2dbf68de47ad4345fcddf1bdb8 Author: Jean-Marc Lasgouttes Date: Mon Nov 27 11:46:52 2023 +0100 Avoid metrics computation on resize when width did not change Entering a math inset triggers a work area reize because the math toobars appear automatically

[LyX features/biginset] Do not compute metrics at each preview when loading file

2024-04-05 Thread Jean-Marc Lasgouttes
commit 244969330108a89f4be93d3b2eb9024bdb756204 Author: Jean-Marc Lasgouttes Date: Thu Dec 21 16:33:06 2023 +0100 Do not compute metrics at each preview when loading file With the branch-test.lyx file from #12297, loading takes forever when previews are activated

[LyX features/biginset] Implement quick scroll

2024-04-05 Thread Jean-Marc Lasgouttes
commit 08010c6a5e425b3f2d0d625536e3a571c90a0482 Author: Jean-Marc Lasgouttes Date: Mon Jul 24 23:23:40 2023 +0200 Implement quick scroll Replace flag parameter for updateMetrics() by a `force' boolean. When it is false, the method keeps the metrics of paragraphs that are still

[LyX features/biginset] In the no-draw phase, do not cache the positions of not visible insets

2024-04-05 Thread Jean-Marc Lasgouttes
commit 7f85024f80601b15634fb5e771bba51435ad429f Author: Jean-Marc Lasgouttes Date: Mon Jul 24 17:53:16 2023 +0200 In the no-draw phase, do not cache the positions of not visible insets This can make a big difference for a very large branch that contains lots of equations

[LyX features/biginset] Implement undo coalescing

2024-04-05 Thread Jean-Marc Lasgouttes
commit f5bbadbad92d55d480ea8b20c1e29f9ffe4ca224 Author: Jean-Marc Lasgouttes Date: Thu Jul 14 01:02:28 2022 +0200 Implement undo coalescing if the undo element we want to add only changes stuff that was already modified by the previous one on undo stack (in the same group

[LyX features/biginset] Enable Update::SinglePar in nested insets too

2024-04-05 Thread Jean-Marc Lasgouttes
commit 9a96726bcd06d565c3027011fea954656aa46668 Author: Jean-Marc Lasgouttes Date: Mon Jul 17 14:43:29 2023 +0200 Enable Update::SinglePar in nested insets too The idea of single par update is to try to re-break only the paragraph containing the cursor (if this paragraph

[LyX features/biginset] Remove some redundant calls to updatePosCache

2024-04-05 Thread Jean-Marc Lasgouttes
commit d19ade9a611d3ecf6840c5eb43291cb268ad6f4f Author: Jean-Marc Lasgouttes Date: Mon Jul 24 15:35:16 2023 +0200 Remove some redundant calls to updatePosCache The setting of insets positions was done twice in updateMetrics. When one of the paragraph is a huge branch, this can

[LyX features/biginset] Do not include in InsetInfo.h

2024-04-05 Thread Jean-Marc Lasgouttes
commit 51562ff37732f4949441bd8c2b55692b0719093a Author: Jean-Marc Lasgouttes Date: Thu Apr 4 17:35:54 2024 +0200 Do not include in InsetInfo.h This is used by getDate/getTime, which actually should not be InsetInfoParams methods, but functions in anonymous namespace. --- src

[LyX features/biginset] fix typo in fr/Intro.lyx

2024-04-05 Thread Jean-Marc Lasgouttes
commit b28655e91ec64b7fb063d8bfea548f82d5d4cc5b Author: Jean-Marc Lasgouttes Date: Thu Apr 4 17:16:06 2024 +0200 fix typo in fr/Intro.lyx --- lib/doc/fr/Intro.lyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc/fr/Intro.lyx b/lib/doc/fr/Intro.lyx index

[LyX features/biginset] Compilation fix with Qt < 5.7

2024-04-05 Thread Jean-Marc Lasgouttes
commit 6260689fd552a5e83d2970dcfd4d5ba7e09443e7 Author: Jean-Marc Lasgouttes Date: Wed Apr 3 12:39:09 2024 +0200 Compilation fix with Qt < 5.7 Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is used to answer a query from the IM machinery, there is no n

[LyX features/biginset] Typo in doc

2024-04-05 Thread Jean-Marc Lasgouttes
commit 43b1234a98c645bee29e3c9bcca9e4c1bcc46d22 Author: Jean-Marc Lasgouttes Date: Mon Mar 25 22:32:17 2024 +0100 Typo in doc Thanks to Peter J. Puchyr for noticing it. --- lib/doc/LaTeXConfig.lyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc

[LyX features/biginset] Fix display of a math hull inset in a tight inset

2024-04-05 Thread Jean-Marc Lasgouttes
commit 4dfebbe9da27ff500b8245858322f1baeb00100b Author: Jean-Marc Lasgouttes Date: Fri Jul 14 02:13:18 2023 +0200 Fix display of a math hull inset in a tight inset This is a kind of hack. This allows InsetMathHull to state that it needs some elbow room beyond its width

[LyX features/biginset] Revert "Fix display of a math hull inset in a tight inset"

2024-04-05 Thread Jean-Marc Lasgouttes
commit 6d62d8009f3c41874cf84aa6577aae3293ebb5e6 Author: Jean-Marc Lasgouttes Date: Fri Mar 22 15:08:26 2024 +0100 Revert "Fix display of a math hull inset in a tight inset" This commit will be replaed by a better solution. Part of ticket #12320. Th

[LyX features/biginset] fix documentation of --enable-cxx-mode

2024-04-05 Thread Jean-Marc Lasgouttes
commit 44c0b4e4cc1827d38dcc5284513a62cc62a54362 Author: Jean-Marc Lasgouttes Date: Thu Mar 21 22:50:38 2024 +0100 fix documentation of --enable-cxx-mode --- INSTALL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index 7a44ad8896..5c9c4d7489

[LyX features/biginset] typo

2024-04-05 Thread Jean-Marc Lasgouttes
commit b659d7e3bdb26ed9c862cdb6dcfeb6dcb8cfb89b Author: Jean-Marc Lasgouttes Date: Thu Mar 21 22:40:19 2024 +0100 typo --- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 8f2836c742..7a44ad8896 100644 --- a/INSTALL +++ b/INSTALL @@ -60,7

[LyX/master] Implement undo coalescing

2024-04-05 Thread Jean-Marc Lasgouttes
commit f5bbadbad92d55d480ea8b20c1e29f9ffe4ca224 Author: Jean-Marc Lasgouttes Date: Thu Jul 14 01:02:28 2022 +0200 Implement undo coalescing if the undo element we want to add only changes stuff that was already modified by the previous one on undo stack (in the same group

[LyX/2.4.x] Compilation fix with Qt < 5.7

2024-04-04 Thread Jean-Marc Lasgouttes
commit 0cd169d6baecb4e6854c408a7452a843e57070e6 Author: Jean-Marc Lasgouttes Date: Wed Apr 3 12:39:09 2024 +0200 Compilation fix with Qt < 5.7 Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is used to answer a query from the IM machinery, there is no n

[LyX/master] Do not include in InsetInfo.h

2024-04-04 Thread Jean-Marc Lasgouttes
commit 51562ff37732f4949441bd8c2b55692b0719093a Author: Jean-Marc Lasgouttes Date: Thu Apr 4 17:35:54 2024 +0200 Do not include in InsetInfo.h This is used by getDate/getTime, which actually should not be InsetInfoParams methods, but functions in anonymous namespace. --- src

[LyX/master] fix typo in fr/Intro.lyx

2024-04-04 Thread Jean-Marc Lasgouttes
commit b28655e91ec64b7fb063d8bfea548f82d5d4cc5b Author: Jean-Marc Lasgouttes Date: Thu Apr 4 17:16:06 2024 +0200 fix typo in fr/Intro.lyx --- lib/doc/fr/Intro.lyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc/fr/Intro.lyx b/lib/doc/fr/Intro.lyx index

[LyX/master] Compilation fix with Qt < 5.7

2024-04-03 Thread Jean-Marc Lasgouttes
commit 6260689fd552a5e83d2970dcfd4d5ba7e09443e7 Author: Jean-Marc Lasgouttes Date: Wed Apr 3 12:39:09 2024 +0200 Compilation fix with Qt < 5.7 Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is used to answer a query from the IM machinery, there is no n

[LyX/2.3.x] Typo in doc

2024-03-25 Thread Jean-Marc Lasgouttes
commit 0f583c11ea44913bfd1acbf70f569649f89639fa Author: Jean-Marc Lasgouttes Date: Mon Mar 25 22:35:09 2024 +0100 Typo in doc Thanks to Peter J. Puchyr for noticing it. --- lib/doc/LaTeXConfig.lyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc

[LyX/master] Typo in doc

2024-03-25 Thread Jean-Marc Lasgouttes
commit 43b1234a98c645bee29e3c9bcca9e4c1bcc46d22 Author: Jean-Marc Lasgouttes Date: Mon Mar 25 22:32:17 2024 +0100 Typo in doc Thanks to Peter J. Puchyr for noticing it. --- lib/doc/LaTeXConfig.lyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc

[LyX/master] Revert "Fix display of a math hull inset in a tight inset"

2024-03-22 Thread Jean-Marc Lasgouttes
commit 6d62d8009f3c41874cf84aa6577aae3293ebb5e6 Author: Jean-Marc Lasgouttes Date: Fri Mar 22 15:08:26 2024 +0100 Revert "Fix display of a math hull inset in a tight inset" This commit will be replaed by a better solution. Part of ticket #12320. Th

[LyX/master] Fix display of a math hull inset in a tight inset

2024-03-22 Thread Jean-Marc Lasgouttes
commit 4dfebbe9da27ff500b8245858322f1baeb00100b Author: Jean-Marc Lasgouttes Date: Fri Jul 14 02:13:18 2023 +0200 Fix display of a math hull inset in a tight inset This is a kind of hack. This allows InsetMathHull to state that it needs some elbow room beyond its width

[LyX/master] fix documentation of --enable-cxx-mode

2024-03-21 Thread Jean-Marc Lasgouttes
commit 44c0b4e4cc1827d38dcc5284513a62cc62a54362 Author: Jean-Marc Lasgouttes Date: Thu Mar 21 22:50:38 2024 +0100 fix documentation of --enable-cxx-mode --- INSTALL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index 7a44ad8896..5c9c4d7489

[LyX/master] typo

2024-03-21 Thread Jean-Marc Lasgouttes
commit b659d7e3bdb26ed9c862cdb6dcfeb6dcb8cfb89b Author: Jean-Marc Lasgouttes Date: Thu Mar 21 22:40:19 2024 +0100 typo --- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 8f2836c742..7a44ad8896 100644 --- a/INSTALL +++ b/INSTALL @@ -60,7

[LyX/master] Fixup 71d9f6e9: swap two tests to avoid line breaking issues

2024-02-29 Thread Jean-Marc Lasgouttes
commit 677a2c2cd14d4e607648be41c9b90b42eda9a764 Author: Jean-Marc Lasgouttes Date: Wed Feb 28 11:27:52 2024 +0100 Fixup 71d9f6e9: swap two tests to avoid line breaking issues The new approach to line breaking introduced in 71d9f6e9 is correct, but the newly introduced

[LyX/master] Fix support for screen fractional scaling with Wayland

2024-02-29 Thread Jean-Marc Lasgouttes
commit 8f61b0859c9bcb8da71f43f94dcf62da41b84ea4 Author: Jean-Marc Lasgouttes Date: Sun Feb 25 20:17:31 2024 +0100 Fix support for screen fractional scaling with Wayland The display was wrong when a backing store is in use (which is the case with Wayland). To fix

[LyX/master] Fix compilation on ubuntu 18.04

2024-02-28 Thread Jean-Marc Lasgouttes
commit 23105b2eddd5bb547f3a960c63dc05a8b69a4e28 Author: Jean-Marc Lasgouttes Date: Wed Feb 28 16:58:35 2024 +0100 Fix compilation on ubuntu 18.04 One of Qt 5.9 or gcc 7.5 does not like the or-ing of several enum flags. --- src/frontends/qt/FindAndReplace.cpp | 2 +- 1 file

[LyX/master] fixup 97cf2b6a: avoid leak

2024-02-27 Thread Jean-Marc Lasgouttes
commit 789a886af8064a8daadffe06cd1515a747e4dda6 Author: Jean-Marc Lasgouttes Date: Tue Feb 27 18:37:07 2024 +0100 fixup 97cf2b6a: avoid leak --- src/Text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index 9fb59b5ec9..e1c8830dc3

[LyX/master] Avoid crash when inserting macro template in tabular inset

2024-02-27 Thread Jean-Marc Lasgouttes
commit 97cf2b6aef1e0d7bc88e863b5d1d9e2920be0dd2 Author: Jean-Marc Lasgouttes Date: Tue Feb 27 18:09:42 2024 +0100 Avoid crash when inserting macro template in tabular inset The issue here is that macro templates are forbidden in InsetTabular (why? I do not know) and Text

[LyX bettertest] baz

2024-02-08 Thread Jean-Marc Lasgouttes
The branch, bettertest, has been created. at 5dd58188940a03e8e0dd3098d02b4b3bb401325a (commit) - Log - commit 5dd58188940a03e8e0dd3098d02b4b3bb401325a Author: Jean-Marc Lasgouttes Date: Fri Feb 9 00:58:57 2024 +0100

[LyX master] bar

2024-02-08 Thread Jean-Marc Lasgouttes
The branch, master, has been updated. - Log - commit a2665dcd5d84fd020515afb7cfa1ac2255aff800 Author: Jean-Marc Lasgouttes Date: Fri Feb 9 00:55:54 2024 +0100 bar diff --git a/bar b/bar new file mode 100644 index 000

[LyX/2.3.x] Fix a number of issues that were stopping compilation with MSVC 19.

2024-02-05 Thread Jean-Marc Lasgouttes
commit 5969f0e7d113734b7859ab89e5edd05233afc8d1 Author: Richard Kimberly Heck Date: Mon May 4 19:41:18 2020 -0400 Fix a number of issues that were stopping compilation with MSVC 19. Patch from Thibaut Cuvelier, modified slightly by me (mostly for style). (cherry picked

[LyX/2.3.x] Do not error out with too new autoconf/automake

2024-02-05 Thread Jean-Marc Lasgouttes
commit 29f2a7ed66c3eddbd1697556aa375ed2263fdf26 Author: Jean-Marc Lasgouttes Date: Fri Feb 2 08:34:51 2024 +0100 Do not error out with too new autoconf/automake The tests are not useful, since the configure.ac file checks for minimal version anyway. (cherry picked

[LyX/master] Do not error out with too new autoconf/automake

2024-02-01 Thread Jean-Marc Lasgouttes
commit 510b2cfd64b1bca443ba3f4756b1bae0610e98fd Author: Jean-Marc Lasgouttes Date: Fri Feb 2 08:34:51 2024 +0100 Do not error out with too new autoconf/automake The tests are not useful, since the configure.ac file checks for minimal version anyway. --- autogen.sh | 22

[LyX/master] Initialize members correctly.

2024-01-22 Thread Jean-Marc Lasgouttes
commit b08cb7fb30c2dfae0f04db9d474f22c5fbc56114 Author: Jean-Marc Lasgouttes Date: Mon Jan 22 11:20:06 2024 +0100 Initialize members correctly. Spotted by coverity. --- src/insets/InsetIndex.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src

[LyX/master] Pass two string parameters as reference

2024-01-12 Thread Jean-Marc Lasgouttes
commit 8dd9cfcf5c24f7f3f15980494ef699f338ed0a00 Author: Jean-Marc Lasgouttes Date: Fri Jan 12 16:02:36 2024 +0100 Pass two string parameters as reference Spotted by coverity --- src/insets/InsetIndex.cpp |2 +- src/insets/InsetIndex.h |2 +- 2 files changed, 2

[LyX/master] Pass a two parameters parameter by reference

2024-01-12 Thread Jean-Marc Lasgouttes
commit 1599c503df11b0c73b60e5c239f3cde9dcf73801 Author: Jean-Marc Lasgouttes Date: Fri Jan 12 15:28:39 2024 +0100 Pass a two parameters parameter by reference Note that there is also a vector parameter that is passed by value. However it is modified as a local copy and I do

[LyX/master] Pass strings as reference

2024-01-12 Thread Jean-Marc Lasgouttes
commit 765c380a5b4c67a6fdbc611b445b7229e609dd2a Author: Jean-Marc Lasgouttes Date: Fri Jan 12 14:34:45 2024 +0100 Pass strings as reference Spotted by coverity. --- src/mathed/InsetMathMacroTemplate.cpp | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff

[LyX/master] Do not pass list of columns parameter by value

2024-01-12 Thread Jean-Marc Lasgouttes
commit 952851a9bcbe6801e73aacc86de0b40bab7d192b Author: Jean-Marc Lasgouttes Date: Fri Jan 12 12:16:31 2024 +0100 Do not pass list of columns parameter by value There is no need for copying this information. Noticed by coverity scan. --- src/insets/InsetTabular.cpp

[LyX/master] Remove obsolete comment

2024-01-04 Thread Jean-Marc Lasgouttes
commit 4a2474c2469e43e4639a97fdfc0138b2fd8e1b24 Author: Jean-Marc Lasgouttes Date: Thu Jan 4 18:44:33 2024 +0100 Remove obsolete comment --- src/graphics/GraphicsImage.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/graphics/GraphicsImage.h b/src/graphics

[LyX features/biginset] Do not compute metrics at each preview when loading file

2023-12-21 Thread Jean-Marc Lasgouttes
The branch, biginset, has been updated. - Log - commit 724abcf97cad9d59cc5fed8e86c927c6c7473191 Author: Jean-Marc Lasgouttes Date: Thu Dec 21 16:33:06 2023 +0100 Do not compute metrics at each preview when loading file

[LyX/master] Fix previews in yellow notes and disabled branches

2023-12-19 Thread Jean-Marc Lasgouttes
commit 2d5fa181a1b187e47dae66b924a7eaf83b8fde72 Author: Jean-Marc Lasgouttes Date: Tue Dec 19 17:45:00 2023 +0100 Fix previews in yellow notes and disabled branches While it is not necessary to run validate() on insets that do not produce output (yellow notes and disabled

[LyX/master] Remove unused variables

2023-12-19 Thread Jean-Marc Lasgouttes
commit 3695b631c6c16d1d87c646d25143c416e7358bad Author: Jean-Marc Lasgouttes Date: Tue Dec 19 17:24:31 2023 +0100 Remove unused variables --- src/graphics/PreviewLoader.cpp |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/graphics/PreviewLoader.cpp b/src

  1   2   3   4   5   6   7   8   9   10   >