[LyX/master] Handle the case where breakAt cuts after trailing space

2021-12-07 Thread Jean-Marc Lasgouttes
commit 6e6976fbc5a61928c51c5193de985e26d94454bd Author: Jean-Marc Lasgouttes Date: Tue Aug 31 15:58:56 2021 +0200 Handle the case where breakAt cuts after trailing space In this case, the extra element returned should empty but valid. The row flag BreakAfter is set to indicate

[LyX/master] Centralize the code that removes trailing spaces from end row element.

2021-12-07 Thread Jean-Marc Lasgouttes
commit ef6dfe18c2149c6b96a806badde9548d7fd9f912 Author: Jean-Marc Lasgouttes Date: Tue Aug 31 19:23:55 2021 +0200 Centralize the code that removes trailing spaces from end row element. Move to Row::Element::rtrim the code in Row::shortenIfNeeded that removes trailing spaces

[LyX/master] Change FontMetrics::breakAt to return a position

2021-12-07 Thread Jean-Marc Lasgouttes
commit 1831f6caaccb7d75e23459fca3b1f7fe9df07766 Author: Jean-Marc Lasgouttes Date: Sat Jul 10 23:21:27 2021 +0200 Change FontMetrics::breakAt to return a position Since we intend to break the row element in two, it is not good to truncate the string too early

[LyX/master] Break the paragraph's big row according to margins

2021-12-07 Thread Jean-Marc Lasgouttes
commit ef88e31a1fb00d16d6d56e63b671d128ef43ad12 Author: Jean-Marc Lasgouttes Date: Wed Jul 14 00:47:42 2021 +0200 Break the paragraph's big row according to margins Still many features missing: - handle insets that break rows (display math, newline, ...) - handle rows

[LyX/master] A set of easy fixes and missing features

2021-12-07 Thread Jean-Marc Lasgouttes
commit df688126cab48e9bb3d2f87e94368c3bdaaf9162 Author: Jean-Marc Lasgouttes Date: Fri Jul 16 00:10:25 2021 +0200 A set of easy fixes and missing features * show changebar when end of paragraph is changed. * when row is finished, set endpos and right_boundary

[LyX/master] Add operator<< for Row::Elements

2021-12-07 Thread Jean-Marc Lasgouttes
commit 71c2e2fda6f241a63c1a67569db5f7fbae6fe4a9 Author: Jean-Marc Lasgouttes Date: Mon Sep 20 17:32:18 2021 +0200 Add operator<< for Row::Elements This is useful for debugging. --- src/Row.cpp | 19 +++ src/Row.h |2 ++ 2 files changed, 17 insertions

[LyX/master] Small Row cleanups

2021-12-07 Thread Jean-Marc Lasgouttes
commit a558f78aa547b3a1a052faafccfad4e9b5afc767 Author: Jean-Marc Lasgouttes Date: Sun Jul 11 15:33:33 2021 +0200 Small Row cleanups Move declaration of RowList to Row.h Move initialization of POD members of Row and Row::Element to declaration. Make method

[LyX/master] Create new method TM::tokenizeParagraph

2021-12-07 Thread Jean-Marc Lasgouttes
commit f4d3702d4d36569851065eed2e0ca88431bd24a2 Author: Jean-Marc Lasgouttes Date: Sun Jul 11 15:19:37 2021 +0200 Create new method TM::tokenizeParagraph This contains large parts of breakRow, but creates a unique row for the paragraph. The parts taken or not in

[LyX/master] Use the new tokenizing and breaking code instead of breakRow.

2021-12-07 Thread Jean-Marc Lasgouttes
commit 0a18a4e763f21c6ef1acef08ba9d4a3db2343c9e Author: Jean-Marc Lasgouttes Date: Wed Jul 14 00:48:03 2021 +0200 Use the new tokenizing and breaking code instead of breakRow. --- src/TextMetrics.cpp | 47 --- 1 files changed, 16 insertions

[LyX/master] Change the way the element's width is updated.

2021-12-07 Thread Jean-Marc Lasgouttes
commit 890fcc08729fea5b1b8e6dba7f0e27d1e266c3aa Author: Jean-Marc Lasgouttes Date: Sat Jul 17 23:16:15 2021 +0200 Change the way the element's width is updated. Remove the code that computed the width every 30 characters (yay!). Make sure that finalizeLast() is called

[LyX/master] Workaround for Qt 4

2021-12-07 Thread Jean-Marc Lasgouttes
commit 6bc50fea3a071ea3560fdacf4f2bb2d20e68e9e2 Author: Jean-Marc Lasgouttes Date: Mon Aug 30 15:48:44 2021 +0200 Workaround for Qt 4 At least with Qt 4.8.7 on Ubuntu 16.04, QTextLine::lineWidth() can return a bogus value, at least with Courier font. One hypothesis is that

Re: [LyX/master] introduce LSMinimumSystemVersion for Mac package with automatic Qt-version based detection plus configure option to choose it manually

2021-12-05 Thread Jean-Marc Lasgouttes
Le 05/12/2021 à 10:43, Stephan Witt a écrit : commit d1d22a1433e503c3f36aa982c2a7ec9d1f79273d Author: Stephan Witt Date: Sun Dec 5 11:10:11 2021 +0100 introduce LSMinimumSystemVersion for Mac package with automatic Qt-version based detection plus configure option to choose it manually

[LyX/master] When inserting text character in mathed, group in same \text when possible.

2021-11-28 Thread Jean-Marc Lasgouttes
commit 5eecfa3e049f6b23bce364b989155ce3e38590d8 Author: Jean-Marc Lasgouttes Date: Sun Nov 28 14:33:45 2021 +0100 When inserting text character in mathed, group in same \text when possible. When inserting € in a math cell, it is put in a text inset and the cursor leaves the

[LyX/master] gzstream is able to read uncompressed files too

2021-11-24 Thread Jean-Marc Lasgouttes
commit 4dec64dba4c3a4abbd29128e5407741b80a0c865 Author: Jean-Marc Lasgouttes Date: Wed Nov 24 11:44:53 2021 +0100 gzstream is able to read uncompressed files too This allows to simplify the code in Lexer and to remove the dependency on Formats class. As a consequence

[LyX/master] Make primary-selection unknown when not supported

2021-11-22 Thread Jean-Marc Lasgouttes
commit 2311f42f4183b968ed0166c4dae1b5f0df00439b Author: Jean-Marc Lasgouttes Date: Fri Nov 19 10:21:55 2021 +0100 Make primary-selection unknown when not supported This lfun will not appear in menus anymore in macOS and Windows. Part of bug #12436. --- src/LyXAction.cpp

[LyX/master] Fixup 3aab9ad2: improve UndoGroupHelper docs again.

2021-11-14 Thread Jean-Marc Lasgouttes
commit b0983e1c5a20ef6c07c3f9c03e301843da159c78 Author: Jean-Marc Lasgouttes Date: Sun Nov 14 19:14:31 2021 +0100 Fixup 3aab9ad2: improve UndoGroupHelper docs again. --- src/Undo.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Undo.h b/src/Undo.h

[LyX/master] Fixup 1cbbe5c3: fix scrollbar with page down

2021-11-13 Thread Jean-Marc Lasgouttes
commit 741d055eba0a062d551ecafc16ab8b8d3b8a5e66 Author: Jean-Marc Lasgouttes Date: Sat Nov 13 19:24:05 2021 +0100 Fixup 1cbbe5c3: fix scrollbar with page down It turns out that the fix was not correct. The right thing to do is to recompte metrics only when screen has moved

[LyX/master] Fix documentation of UndoGroupHelper

2021-11-12 Thread Jean-Marc Lasgouttes
commit 3aab9ad25edcd527868f8f2b8a26262255952966 Author: Jean-Marc Lasgouttes Date: Fri Nov 12 16:47:41 2021 +0100 Fix documentation of UndoGroupHelper --- src/Undo.h |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Undo.h b/src/Undo.h index 887f762

[LyX/master] Release note: remove fun "bidi"

2021-10-29 Thread Jean-Marc Lasgouttes
commit f8e893ce7e9383730b9049ca6e068419fe6ee959 Author: Jean-Marc Lasgouttes Date: Fri Oct 29 18:08:29 2021 +0200 Release note: remove fun "bidi" As documented later, this has been removed. --- lib/RELEASE-NOTES |2 -- 1 files changed, 0 insertions(+), 2 deletion

[LyX/master] Rename BufferView::updateScrollbar to show what does

2021-10-29 Thread Jean-Marc Lasgouttes
commit 110445e3e2fe9beab1c38d2806cfd126dae967a9 Author: Jean-Marc Lasgouttes Date: Fri Oct 29 17:44:32 2021 +0200 Rename BufferView::updateScrollbar to show what does Only parameters are updated, not the scrollbar itself. --- src/BufferView.cpp |4 ++-- src/BufferView.h

[LyX/master] Fixup b0c102cfb: make it possible to select medskip as parskip

2021-10-29 Thread Jean-Marc Lasgouttes
commit 5c055034c2076160bcb6ea7ae6d42de694cc2ca7 Author: Jean-Marc Lasgouttes Date: Fri Oct 29 16:38:29 2021 +0200 Fixup b0c102cfb: make it possible to select medskip as parskip Some new parskip possibilities had been added, but the check for custom length index had not bee

[LyX/master] An assert to hopefully please coverity

2021-10-29 Thread Jean-Marc Lasgouttes
commit 2c50f0cd77a96ccfeb48262e7144eadc39ee21f7 Author: Jean-Marc Lasgouttes Date: Fri Oct 29 12:39:50 2021 +0200 An assert to hopefully please coverity --- src/insets/InsetText.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/insets/InsetText.cpp b/src

[LyX/master] Make sure that language is "latex" in InsetArgument when pass-thru.

2021-10-21 Thread Jean-Marc Lasgouttes
commit 2f236b01e0eb9dd7388cc446e9d0c58a3b31208f Author: Jean-Marc Lasgouttes Date: Thu Oct 21 19:14:06 2021 +0200 Make sure that language is "latex" in InsetArgument when pass-thru. The code that determine whether an InsetArgument is passThru is complex an

[LyX/master] Let Tab go out of inset when no cycling is possible

2021-10-21 Thread Jean-Marc Lasgouttes
commit 85f030a03173252dbb9d3ba75853ad48f43a8a8f Author: Jean-Marc Lasgouttes Date: Thu Oct 21 22:36:29 2021 +0200 Let Tab go out of inset when no cycling is possible Adapted patch from Enrico by adding S-Tab handling. Fixes bug #11085 --- src/mathed/InsetMathNest.cpp

[LyX/2.3.x] #11925 Remove the gap between button frame and button background (by Daniel Ramoeller)

2021-10-21 Thread Jean-Marc Lasgouttes
commit dd18429aaa11b835cdb2cf96c841d756b8da7f59 Author: Stephan Witt Date: Sun Feb 14 19:04:33 2021 +0100 #11925 Remove the gap between button frame and button background (by Daniel Ramoeller) (cherry picked from commit 3d616bfc79866a8b7c97f1fd4d566eefb3da6f40) --- src/frontends/

[LyX/master] Reset inline completion after undo/redo

2021-10-18 Thread Jean-Marc Lasgouttes
commit 40ee8d2a1a8bbc138387950bc9b71d97446e87f2 Author: Jean-Marc Lasgouttes Date: Tue Oct 12 15:45:04 2021 +0200 Reset inline completion after undo/redo Fixes bug #12383. --- src/BufferView.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src

[LyX/master] Revert "Update correctly completion after undo"

2021-10-18 Thread Jean-Marc Lasgouttes
commit ada713a8815063cfa9fbd4666b3ae5a220a07eba Author: Jean-Marc Lasgouttes Date: Mon Oct 18 17:35:48 2021 +0200 Revert "Update correctly completion after undo" This reverts commit 06acb7f806f99cd418781f9d0645b213f8241062. --- src/frontends/qt/GuiView.cpp |4 +--

[LyX/master] Get rid of std::iterator

2021-10-15 Thread Jean-Marc Lasgouttes
commit a29ced557744d6606a7b04f4ed9f45af4c3a6c29 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 17:38:13 2021 +0200 Get rid of std::iterator clang's libc++ 13 tells us that it is deprecated in C++17. Fortunately, we do not need it after all. --- src/ParIterator.h |

[LyX/2.3.x] Avoid some more copies in range-based for loops

2021-10-15 Thread Jean-Marc Lasgouttes
commit cca4b8d42a282d3b93d86acb0e990074db4f7fd3 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 16:10:04 2021 +0200 Avoid some more copies in range-based for loops This triggers warnings with clang++ 10 and gcc 11. (cherry-picked from commit

[LyX/2.3.x] Remove variable that is not used

2021-10-15 Thread Jean-Marc Lasgouttes
commit 3beb9b326d4bd29e4122d759ef48f32a7488161d Author: Jean-Marc Lasgouttes Date: Fri Oct 15 15:49:40 2021 +0200 Remove variable that is not used Spotted by clang++ 13. (cherry picked from commit d99502d9154e7e51a665f03963e010411e9545be) --- src/frontends/qt4

[LyX/2.3.x] Do not for copies in range-based for loops.

2021-10-15 Thread Jean-Marc Lasgouttes
commit 4d410d0d32a6ade8e5ee27f4390a0340ed8d5b60 Author: Jean-Marc Lasgouttes Date: Tue Apr 28 13:27:50 2020 +0200 Do not for copies in range-based for loops. Spotted by clang++ 10. (cherry picked from commit a85c48de5a15c4f70f79a53b451fbe0d083e9ece) --- src

[LyX/2.3.x] Explicit InsetTableCell copy constructor

2021-10-15 Thread Jean-Marc Lasgouttes
commit dfa97f80d9fc1c8c6a4cd03234c4429fa95362a0 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 16:20:40 2021 +0200 Explicit InsetTableCell copy constructor Use explicit default syntax (C++11). Adapted from: commit bff97ba76d65da3f9048ef107b29ee642bdd5229 commit

[LyX/2.3.x] Fix more unintended copies in range-based for loops

2021-10-15 Thread Jean-Marc Lasgouttes
commit 09b340a45e4563d11a9a132c86693fb44f898b81 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 17:41:01 2021 +0200 Fix more unintended copies in range-based for loops Spotted by g++ 11. --- src/Encoding.cpp |2 +- src/TocBackend.cpp |2 +- src

[LyX/2.3.x] Autoconf: disable warning deprecated-copy when supported

2021-10-15 Thread Jean-Marc Lasgouttes
commit 1922ee7d4015956555f5a5d82994df027ca60415 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 17:05:04 2021 +0200 Autoconf: disable warning deprecated-copy when supported Cherry-picked from: 4aee447af1ab29d094e917b94ec3e3d4af36f1cd c52049bb83d71b926e6b949362a47bde9f8d5653

[LyX/master] Remove variable that is not used

2021-10-15 Thread Jean-Marc Lasgouttes
commit d99502d9154e7e51a665f03963e010411e9545be Author: Jean-Marc Lasgouttes Date: Fri Oct 15 15:49:40 2021 +0200 Remove variable that is not used Spotted by clang++ 13. --- src/frontends/qt/GuiDocument.cpp |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

[LyX/master] Improve display of META_INSET in status bar.

2021-10-15 Thread Jean-Marc Lasgouttes
commit 5f4890721b86f9051c02697c53b62cdcc3c0e558 Author: Jean-Marc Lasgouttes Date: Fri Oct 15 11:10:44 2021 +0200 Improve display of META_INSET in status bar. --- src/Text.cpp |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/Text.cpp b/src/Text.cpp index

[LyX/master] Revert "Reset inline completion after undo/redo"

2021-10-14 Thread Jean-Marc Lasgouttes
commit 91c5061d263efafc7ca873e5d9422fd3dffb66d3 Author: Jean-Marc Lasgouttes Date: Thu Oct 14 16:26:21 2021 +0200 Revert "Reset inline completion after undo/redo" Try a solution closer to other code instead. This reverts commit e59aee45801f6f61489a4be3162b4c

[LyX/master] Update correctly completion after undo

2021-10-14 Thread Jean-Marc Lasgouttes
commit 06acb7f806f99cd418781f9d0645b213f8241062 Author: Jean-Marc Lasgouttes Date: Thu Oct 14 16:39:33 2021 +0200 Update correctly completion after undo This is take #2 after reverting e59aee458. Request the completer to rebuild a completion after undo/redo

[LyX/master] Reset inline completion after undo/redo

2021-10-12 Thread Jean-Marc Lasgouttes
commit e59aee45801f6f61489a4be3162b4c43f6b8a658 Author: Jean-Marc Lasgouttes Date: Tue Oct 12 15:45:04 2021 +0200 Reset inline completion after undo/redo Fixes bug #12383. --- src/BufferView.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src

[LyX features/breakrows] One less thing to do in PAINTING_ANALYSIS

2021-10-12 Thread Jean-Marc Lasgouttes
The branch, breakrows, has been updated. - Log - commit 5f33a0ea1971e924c4959b9a003ed548871153ab Author: Jean-Marc Lasgouttes Date: Tue Oct 12 11:33:23 2021 +0200 One less thing to do in PAINTING_ANALYSIS diff --git a

[LyX/master] Work around compilation warning

2021-10-11 Thread Jean-Marc Lasgouttes
commit c242b2536401dc06ab5740d6c9c01013282ed795 Author: Jean-Marc Lasgouttes Date: Fri Jul 16 18:27:15 2021 +0200 Work around compilation warning Clang 12 (at least) misses the fact that tag is always initialized, because the if/else sequence does cover all cases

[LyX/master] Fixup c52049bb83d: -Werror is needed to test for warning flags

2021-10-11 Thread Jean-Marc Lasgouttes
commit 37c34c5ca98a31669144a7119068edf96d68261c Author: Jean-Marc Lasgouttes Date: Mon Oct 11 14:31:58 2021 +0200 Fixup c52049bb83d: -Werror is needed to test for warning flags At least on my old clang++, this is required. Fixes bug #12391. --- config/lyxinclude.m4

[LyX features/breakrows] Increase metrics cache maximal size

2021-10-10 Thread Jean-Marc Lasgouttes
27;ve already had alert emails for all of the O revisions, and so we here report only the revisions in the N branch from the common base, B. - Log - commit fce1597e3e8e5075fc15e083f379c0470573df71 Author: Jean-Marc Lasgouttes Date: Tu

[LyX/master] Make CoordCache assertions less annoying.

2021-10-09 Thread Jean-Marc Lasgouttes
commit a5f1b158589fc9d3a5d1f8291461d0001d06ea09 Author: Jean-Marc Lasgouttes Date: Sat Oct 9 12:25:29 2021 +0200 Make CoordCache assertions less annoying. --- src/CoordCache.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoordCache.h b/src/CoordCache.h

[LyX/master] Avoid duplicate checks in CoordCache

2021-10-08 Thread Jean-Marc Lasgouttes
commit 0fff65a16aed6a41bbb53958d9f5aff92984d372 Author: Jean-Marc Lasgouttes Date: Wed Oct 6 13:06:45 2021 +0200 Avoid duplicate checks in CoordCache The code is written in such a way that the elements are searched several times. This can be expensive when there are a lots of

[LyX/master] Reduce the number of accesses to coord cache when drawing a math row

2021-10-08 Thread Jean-Marc Lasgouttes
commit e5bb491e2e10a8097284d11eae5501a3673731cb Author: Jean-Marc Lasgouttes Date: Fri Oct 8 17:38:25 2021 +0200 Reduce the number of accesses to coord cache when drawing a math row Each of these accesses is somewhat costly when using large branches with lots of maths

[LyX/master] Use unordered maps to store inset and math rows geometry.

2021-10-08 Thread Jean-Marc Lasgouttes
commit e09158efee92c6a57f5228af35f1cf8e0eeb07d8 Author: Jean-Marc Lasgouttes Date: Tue Oct 5 16:58:49 2021 +0200 Use unordered maps to store inset and math rows geometry. Simply using unordered_map instead of map makes a big difference for documents with lots of math insets in

[LyX features/breakrows] Use unordered maps to store inset and math rows geometry.

2021-10-05 Thread Jean-Marc Lasgouttes
The branch, breakrows, has been updated. - Log - commit aa3f55a4e31f2631e8c77d10a5479979c05e7b89 Author: Jean-Marc Lasgouttes Date: Tue Oct 5 16:58:49 2021 +0200 Use unordered maps to store inset and math rows geometry

[LyX features/breakrows] Increase metrics cache maximal size

2021-10-05 Thread Jean-Marc Lasgouttes
The branch, breakrows, has been updated. - Log - commit 8224ebef5e34b5997cc101c0a387414d49f55e81 Author: Jean-Marc Lasgouttes Date: Tue Oct 5 15:52:31 2021 +0200 Increase metrics cache maximal size Increase the

Re: [LyX/master] Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag

2021-09-29 Thread Jean-Marc Lasgouttes
Le 29/09/2021 à 17:32, Kornel Benko a écrit : commit c26db650a1e93573e4c09d4612ad45ae1e219854 Author: Kornel Benko Date: Wed Sep 29 17:53:50 2021 +0200 Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag The original test was always successfull, even if the flag

[LyX/master] Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag

2021-09-29 Thread Jean-Marc Lasgouttes
commit c52049bb83d71b926e6b949362a47bde9f8d5653 Author: Jean-Marc Lasgouttes Date: Wed Sep 29 18:01:14 2021 +0200 Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag (shamelessly stolen from c26db650a1, which was for cmake build) The origina

[LyX/master] Make paragraph-goto and friends set paragraph to the top

2021-09-29 Thread Jean-Marc Lasgouttes
commit 42abb26054ed2a4aa161e97f9479a6902c92e669 Author: Jean-Marc Lasgouttes Date: Wed Feb 17 12:30:16 2021 +0100 Make paragraph-goto and friends set paragraph to the top Add parameter 'force' to scrollToCursor(...) to avoid the case where the cursor is not set to t

[LyX/master] SVG replacement of busy.gif

2021-09-29 Thread Jean-Marc Lasgouttes
commit 0862042b28039159656e8a4d6dea1be5a94cf8b6 Author: Daniel Ramoeller Date: Wed Sep 29 04:25:58 2021 +0200 SVG replacement of busy.gif Fix for bug #10384. --- lib/Makefile.am |2 +- lib/images/busy.gif | Bin 1849 -> 0 bytes lib/images/busy.svgz

[LyX/master] typo

2021-09-28 Thread Jean-Marc Lasgouttes
commit 7067f48fa7afb89575abc58495d076078ce20137 Author: Jean-Marc Lasgouttes Date: Tue Sep 28 11:25:25 2021 +0200 typo --- src/frontends/qt/GuiApplication.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt

[LyX/master] Make rectangles have pointy corners

2021-09-27 Thread Jean-Marc Lasgouttes
commit 3cdfb42cced175c108563f378589ec9aae134093 Author: Jean-Marc Lasgouttes Date: Mon Sep 27 17:46:38 2021 +0200 Make rectangles have pointy corners This only makes a difference in HiDpi mode. Adaptation of the patch proposed by Daniel. Fix for bug #12336

[LyX/master] Whitespace

2021-09-27 Thread Jean-Marc Lasgouttes
commit 73865ce9997f75f5b88160f973b316d657be20cf Author: Jean-Marc Lasgouttes Date: Mon Sep 27 11:53:46 2021 +0200 Whitespace --- src/mathed/InsetMathNest.cpp |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed

[LyX/master] Fixup 6bbd88ac: compilation fix for Qt4

2021-09-27 Thread Jean-Marc Lasgouttes
commit 69834f1e0da4dc09007f0947b870fd66a72501e3 Author: Jean-Marc Lasgouttes Date: Mon Sep 27 13:56:04 2021 +0200 Fixup 6bbd88ac: compilation fix for Qt4 --- src/frontends/qt/GuiFontMetrics.cpp |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/frontends

[LyX/master] Fix warning.

2021-09-24 Thread Jean-Marc Lasgouttes
commit b3890d9eab40f996061f8ae1a7353b6819cd9774 Author: Jean-Marc Lasgouttes Date: Fri Sep 24 18:45:08 2021 +0200 Fix warning. --- src/frontends/qt/GuiFontMetrics.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiFontMetrics.h b/src/frontends

[LyX/master] Improve (modestly) the performance of font metrics caches

2021-09-24 Thread Jean-Marc Lasgouttes
commit 6bbd88accfb76248d00346f308ba1f67f186e094 Author: Jean-Marc Lasgouttes Date: Fri Sep 24 16:57:05 2021 +0200 Improve (modestly) the performance of font metrics caches This fixes two performance issues and improves the performance of TextMetrics::redoParagraph by 15% in a

Re: [LyX/master] Fix bug #12373

2021-09-24 Thread Jean-Marc Lasgouttes
Le 24/09/2021 à 09:56, Enrico Forestieri a écrit : commit 9ae002b69f5ae140448b71f8b41ce8797f328468 Author: Enrico Forestieri Date: Fri Sep 24 10:15:58 2021 +0200 Fix bug #12373 Do not perform any autocorrection in the presence of a selection. This was my conclusion too. JMa

[LyX features/breakrows] Improve row flushing

2021-09-23 Thread Jean-Marc Lasgouttes
ommit 4d44f49b52fa9eedb4ee756bcac236f180c7c79c Author: Jean-Marc Lasgouttes Date: Wed Sep 22 15:09:26 2021 +0200 Improve row flushing Add new row flags Flush and FlushBefore to let insets indicate whether they cause flushing of current row (eg. newline) or of previous row

[LyX features/breakrows] Break multi-row strings in one pass

2021-09-20 Thread Jean-Marc Lasgouttes
The branch, breakrows, has been updated. - Log - commit 8006aa710f2bc52082538f1c37252cc98b2b5c46 Author: Jean-Marc Lasgouttes Date: Mon Sep 20 17:42:45 2021 +0200 Break multi-row strings in one pass Replace

[LyX features/breakrows] Change Row::Element::splitAt to return a vector of Element

2021-09-07 Thread Jean-Marc Lasgouttes
- Log - commit eec0ec60dd5bec229f3128f956ae937bdc441735 Author: Jean-Marc Lasgouttes Date: Mon Sep 6 14:52:42 2021 +0200 Change Row::Element::splitAt to return a vector of Element This is in preparation of splitAt splitting in more than two strings. For now, it returns a vector

[LyX features/breakrows] Fix setting of row pos/endpos (overlapping rows)

2021-09-02 Thread Jean-Marc Lasgouttes
the O revisions, and so we here report only the revisions in the N branch from the common base, B. - Log - commit 5bdc309b1feb6eb9e28914ff0359c3dc78d2bb92 Author: Jean-Marc Lasgouttes Date: Thu Sep 2 15:16:28 2021 +0200 Fix se

[LyX features/breakrows] Centralize the code that removes trailing spaces from end row element.

2021-08-31 Thread Jean-Marc Lasgouttes
- Log - commit 7a0018216746aaa0b71b266f8b99e753bea93bed Author: Jean-Marc Lasgouttes Date: Tue Aug 31 19:23:55 2021 +0200 Centralize the code that removes trailing spaces from end row element. Move to Row::Element::splitAt the code in Row::shortenIfNeeded that removes trailing s

[LyX features/breakrows] Workaround for Qt 4

2021-08-31 Thread Jean-Marc Lasgouttes
y the revisions in the N branch from the common base, B. - Log - commit 5e0358f3d3ad6001f471a7144db7c46cd1b06ee6 Author: Jean-Marc Lasgouttes Date: Mon Aug 30 15:48:44 2021 +0200 Workaround for Qt 4 At least with Qt 4.8

[LyX features/breakrows] Last step: use sortenIfNeeded again.

2021-08-26 Thread Jean-Marc Lasgouttes
by tokenizeParagraph() into a list of rows. RowList breakParagraph(Row const & row) const; - /// sets row.end to the pos value *after* which a row should break. - /// for example, the pos after which isNewLine(pos) == true - /// \return true when another row is required (

[LyX features/breakrows] fixup 3d8cc4245fb for older compilers

2021-07-22 Thread Jean-Marc Lasgouttes
The branch, breakrows, has been updated. - Log - commit 4729043d2d788be30c2ce289293720e1137c58c2 Author: Jean-Marc Lasgouttes Date: Thu Jul 22 10:46:54 2021 +0200 fixup 3d8cc4245fb for older compilers diff --git a/src

[LyX/master] Count the width of pilcrows indicating changed end-of-par

2021-07-21 Thread Jean-Marc Lasgouttes
commit b0a74fa41075a35f26106050140aa637d5b41d1d Author: Jean-Marc Lasgouttes Date: Wed Jul 21 11:24:45 2021 +0200 Count the width of pilcrows indicating changed end-of-par This is related to #10357. The case of real end-of-par markers is taken into account, but not "c

[LyX/master] Standard proof layout does not have an end label

2021-07-19 Thread Jean-Marc Lasgouttes
commit 5920ddb56709738e81a18b84ace788f85b3e6d44 Author: Jean-Marc Lasgouttes Date: Mon Jul 19 12:36:34 2021 +0200 Standard proof layout does not have an end label Most proof environment have a qed box at the end, but not this one. This only changes screen rendering. --- lib

[LyX/master] Whitespace

2021-07-13 Thread Jean-Marc Lasgouttes
commit f3396ae011dc03a2cb695658de941bbfae34708a Author: Jean-Marc Lasgouttes Date: Tue Jul 13 11:15:13 2021 +0200 Whitespace --- src/insets/Inset.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 4396c9b..af24423

[LyX/master] Revert "Add a move constructor to Inset"

2021-07-12 Thread Jean-Marc Lasgouttes
commit 1c200e0d998b96b081954df52422be61eab8f2fe Author: Jean-Marc Lasgouttes Date: Mon Jul 12 12:38:16 2021 +0200 Revert "Add a move constructor to Inset" It does not compile :-p This reverts commit 874928f4a4370d8b7b8092df33f4436a0f52e7f7. --- src/insets/Inse

[LyX/master] Add a move constructor to Inset

2021-07-12 Thread Jean-Marc Lasgouttes
commit 874928f4a4370d8b7b8092df33f4436a0f52e7f7 Author: Jean-Marc Lasgouttes Date: Mon Jul 12 11:55:19 2021 +0200 Add a move constructor to Inset Does not change much, but Coverity complains about it. Let's see if this allows Inset's child classes to grow thei

[LyX/master] Rework display of numbers in margins of hull insets

2021-07-09 Thread Jean-Marc Lasgouttes
commit da57154f94077604d9bddcff7360307897cbad3f Author: Jean-Marc Lasgouttes Date: Thu Jul 1 18:35:16 2021 +0200 Rework display of numbers in margins of hull insets This requires the introduction of the booleans selected_left and selected_right in PainterInfo. These tell

[LyX/master] Always remove selection after cursor up/down

2021-06-30 Thread Jean-Marc Lasgouttes
commit 008a0825e8d67b9c0a3d31b906f04cd7b8fd18a8 Author: Jean-Marc Lasgouttes Date: Tue Jun 29 12:43:59 2021 +0200 Always remove selection after cursor up/down When the cursor cannot move on cursor up/down, at least the selection should be cleared (when not selecting

[LyX/master] Always remove selection after cursor left/right

2021-06-30 Thread Jean-Marc Lasgouttes
commit 8d90bb99915599d0f9cda16a33a8428895a84e8c Author: Jean-Marc Lasgouttes Date: Fri Jun 18 13:53:37 2021 +0200 Always remove selection after cursor left/right Example: when a selection is set, a `Left' cursor movement would not reset selection when the cursor was a

[LyX/master] Improve test in Geometry::covers

2021-06-14 Thread Jean-Marc Lasgouttes
commit a9c6fb0c19f5a3eb884262bd37f7efdac035a20b Author: Jean-Marc Lasgouttes Date: Wed Jun 9 15:59:28 2021 +0200 Improve test in Geometry::covers Horizontally, the old code would count an extra pixel on the right. The vertical test is not changed, and should be eventually

[LyX/master] Allow line inset to draw a vertical line.

2021-06-14 Thread Jean-Marc Lasgouttes
commit 22cb573cacb9a148458d401deff725971def8b45 Author: Jean-Marc Lasgouttes Date: Mon Jun 14 15:36:45 2021 +0200 Allow line inset to draw a vertical line. Qpainter::drawline cannot draw a line which is thicker than it is long. Draw a rectangle instead. Fix bug #12307

[LyX/master] Cleanup: fix comments, move declarations around

2021-06-09 Thread Jean-Marc Lasgouttes
commit ca2706e30ecb8d2de1508a120478aac0535e8cb6 Author: Jean-Marc Lasgouttes Date: Wed Jun 9 15:49:01 2021 +0200 Cleanup: fix comments, move declarations around --- src/frontends/FontMetrics.h | 25 - src/frontends/qt/GuiFontMetrics.cpp |1 + 2 files

[LyX/master] Fixup f3a0e8ff: forgot to test in main dispatch

2021-06-08 Thread Jean-Marc Lasgouttes
commit e309a5599e74d56a7a749936681a18d186840f83 Author: Jean-Marc Lasgouttes Date: Tue Jun 8 13:55:37 2021 +0200 Fixup f3a0e8ff: forgot to test in main dispatch I would probably have seen this missing bit if not for the bug fixed since then at c9146e5b. Fixes (again

[LyX/2.3.x] Yet another deprecation fix (this is the last one I am aware of)

2021-06-03 Thread Jean-Marc Lasgouttes
commit 70d88f02e757724ae4c1524b7b95b7a462416ca2 Author: Juergen Spitzmueller Date: Fri Mar 12 12:14:42 2021 +0100 Yet another deprecation fix (this is the last one I am aware of) (cherry picked from commit 9f92fc92bdd41c367b0975454a01c15403d51a60) (cherry picked from commit 67c

[LyX/master] Fixup 7e7f9eba: we only need one hasLimits() method

2021-06-01 Thread Jean-Marc Lasgouttes
commit 7e17d1a1b7e1f3a48a8e2f9a2f30f1b3792e9f9a Author: Jean-Marc Lasgouttes Date: Tue Jun 1 16:12:46 2021 +0200 Fixup 7e7f9eba: we only need one hasLimits() method Related to bug #12295. --- src/mathed/InsetMathScript.cpp | 14 +++--- src/mathed/InsetMathScript.h

[LyX/master] Prevent insets in table cells from expanding artificially to max width

2021-05-31 Thread Jean-Marc Lasgouttes
commit 5e396c3f0cc16b65db6c1623b249b75002c5edbf Author: Jean-Marc Lasgouttes Date: Tue Jul 14 23:28:43 2020 +0200 Prevent insets in table cells from expanding artificially to max width This replaces ad-hoc hacks and does a better job by propagating the the tightness

[LyX/master] Fixup 9f92fc92: improve FIXME in SystemcallPrivate::startProcess

2021-05-20 Thread Jean-Marc Lasgouttes
commit 67c85f54c4d7422b715898070e63dfe7a984a6ca Author: Jean-Marc Lasgouttes Date: Thu May 20 13:17:55 2021 +0200 Fixup 9f92fc92: improve FIXME in SystemcallPrivate::startProcess I wanted to remove the test Qt >= 5.15, but now I see that it is not possible because of QProc

[LyX/master] Cache icons of dynamic menu buttons

2021-05-05 Thread Jean-Marc Lasgouttes
commit e4b80698be91708ce1b9fd86d6032245ef4f3dc7 Author: Jean-Marc Lasgouttes Date: Tue May 4 14:41:24 2021 +0200 Cache icons of dynamic menu buttons The current code would load the same icons again and again and LyX memory footprint would grow. Tentative fixe to bug

[LyX/master] Improve the description of Inset::inheritFont()

2021-04-13 Thread Jean-Marc Lasgouttes
commit 0acf594df2d98bf675cc67ed0bec5deddaedc777 Author: Jean-Marc Lasgouttes Date: Tue Apr 13 10:33:42 2021 +0200 Improve the description of Inset::inheritFont() The existing descriptions were obsolete (see e.g. ticket #10263). --- src/insets/Inset.h| 10 +++--- src

[LyX/master] Revert "Fix bug #10263"

2021-04-13 Thread Jean-Marc Lasgouttes
commit 441c6a93590698c3c57982c8b80179d6809fb106 Author: Jean-Marc Lasgouttes Date: Mon Apr 12 20:44:58 2021 +0200 Revert "Fix bug #10263" A series of commits, culminating at 812ff7de, pushed a few days later, fixes the bug at its root. This one is not needed anym

[LyX/master] Revert "The foot inset does not inherit fonts"

2021-04-10 Thread Jean-Marc Lasgouttes
commit f41f88ac2d87b5a68169fb9b2161a33a459bebca Author: Jean-Marc Lasgouttes Date: Sat Apr 10 13:44:07 2021 +0200 Revert "The foot inset does not inherit fonts" Due to braindead semantics, this is not possible. This reverts commit 59f63602f5bc4a9dd3426761dceb9c

[LyX/master] The foot inset does not inherit fonts

2021-04-09 Thread Jean-Marc Lasgouttes
commit 59f63602f5bc4a9dd3426761dceb9cb5aa4e656a Author: Jean-Marc Lasgouttes Date: Fri Apr 9 19:06:28 2021 +0200 The foot inset does not inherit fonts Fixes bug #12238. --- src/insets/InsetFoot.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/insets

[LyX/master] Fixup f3a0e8ff: costly thinko

2021-04-09 Thread Jean-Marc Lasgouttes
commit c9146e5be087638d0dc115e862fd685c74e257e4 Author: Jean-Marc Lasgouttes Date: Fri Apr 9 18:15:31 2021 +0200 Fixup f3a0e8ff: costly thinko When the buffer stuff has been updated, the Buffer::needUpdate() should be reset to false. This was forgotten in f3a0e8ff

[LyX/master] We only support gcc >= 4.9.

2021-04-07 Thread Jean-Marc Lasgouttes
commit b08a653f3549e08fffc5318c87da305651ecc197 Author: Jean-Marc Lasgouttes Date: Wed Apr 7 17:17:05 2021 +0200 We only support gcc >= 4.9. --- src/Paragraph.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp in

[LyX/master] Make fall through explixcit

2021-04-07 Thread Jean-Marc Lasgouttes
commit e33567cdcb23b382a477eb7e4dad18469c0d2f36 Author: Jean-Marc Lasgouttes Date: Wed Apr 7 17:13:43 2021 +0200 Make fall through explixcit --- src/LyXRC.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 83317c5..6bc28e9

[LyX/master] Fixup 0f0ad1f7: cut and paste error

2021-04-07 Thread Jean-Marc Lasgouttes
commit e96a656b4dd7ffe01a52acd1d98effe259ab348a Author: Jean-Marc Lasgouttes Date: Wed Apr 7 16:22:54 2021 +0200 Fixup 0f0ad1f7: cut and paste error --- src/LyXRC.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 0ea13c5

[LyX/master] Make bookmarks display configurable

2021-04-07 Thread Jean-Marc Lasgouttes
commit 0f0ad1f715b914d424b6edd01aad2e559e8e85f5 Author: Jean-Marc Lasgouttes Date: Tue Apr 6 15:19:12 2021 +0200 Make bookmarks display configurable Introduce a GUI-less LyXRC member bookmarks_visibility. This is experimental and will not be documented for 2.4.0. Having the

[LyX/master] Fix compilation for clang 3.7 with libc++

2021-04-06 Thread Jean-Marc Lasgouttes
commit 557d33b7e518f29f33ebec79439404bd1fe38f93 Author: Jean-Marc Lasgouttes Date: Tue Apr 6 12:07:42 2021 +0200 Fix compilation for clang 3.7 with libc++ --- src/BranchList.h |1 + src/BufferList.cpp |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src

[LyX/master] Fix drawing of indicators for tracked changes and horizontal scrolling.

2021-04-05 Thread Jean-Marc Lasgouttes
commit b2912339d06b403b95351f1d00366da13fbdc4f6 Author: Jean-Marc Lasgouttes Date: Mon Apr 5 19:07:15 2021 +0200 Fix drawing of indicators for tracked changes and horizontal scrolling. 1/ fix horizontal position of the insets This is adapted from parts of racoon&#

[LyX/2.3.x] Fix display of emphasize in slanted text

2021-03-27 Thread Jean-Marc Lasgouttes
commit 4b2bb08884be6b8317ea0bc3cca76ce223c477bd Author: Jean-Marc Lasgouttes Date: Sun Mar 7 13:29:21 2021 +0100 Fix display of emphasize in slanted text Fixes bug #12175. (cherry picked from commit 610ea7f4f503d690287c75fc5e8b003e1d7b5c96) --- src/FontInfo.h |3

[LyX/master] Produce an error on bad debug level values

2021-03-26 Thread Jean-Marc Lasgouttes
commit 9ff27f8ce09a79e05bc1fe1c1d2e4d8c6ccbfc7e Author: Jean-Marc Lasgouttes Date: Fri Mar 26 17:49:38 2021 +0100 Produce an error on bad debug level values Add new funciton Debug::badValue, that returns the first bad value in a debug setting string. Use it to parse

[LyX/master] Fixup 4671214f: add comment

2021-03-26 Thread Jean-Marc Lasgouttes
commit 0429b580e6f81cca3ff8e7da609ca868f39e5709 Author: Jean-Marc Lasgouttes Date: Fri Mar 26 14:19:07 2021 +0100 Fixup 4671214f: add comment --- src/BufferView.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index

[LyX/master] Keep caret visible when small

2021-03-26 Thread Jean-Marc Lasgouttes
commit 4671214f3dbc95207eda7cafb37cd0064b11f3e8 Author: Daniel Ramoeller Date: Fri Mar 12 19:19:51 2021 +0100 Keep caret visible when small Fix for ticket #12190. --- src/BufferView.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/BufferView.cpp b/

<    2   3   4   5   6   7   8   9   10   11   >