[LyX/2.3.x] Improve HiDpi handling

2021-03-04 Thread Jean-Marc Lasgouttes
commit 8b6460e4f2d4040e3df41ef0abc70cbbe14ad875 Author: Jean-Marc Lasgouttes Date: Thu Feb 25 17:56:11 2021 +0100 Improve HiDpi handling Add code stolen from QBitTorrent and Qt Creator that properly enables HighDpi handling. The rules are: 1/ nothing needs to

[LyX/master] Fix warning when not using Qt regexps

2021-03-05 Thread Jean-Marc Lasgouttes
commit e6a7da3b222e1615e02e92ed5ac91bee5cb50acc Author: Jean-Marc Lasgouttes Date: Fri Mar 5 11:54:11 2021 +0100 Fix warning when not using Qt regexps --- src/lyxfind.cpp |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index

[LyX/master] Fix missing initialization

2021-03-05 Thread Jean-Marc Lasgouttes
commit f5340fd6d94578a66b9eccdca0fcce35c1e1b12c Author: Jean-Marc Lasgouttes Date: Fri Mar 5 13:06:10 2021 +0100 Fix missing initialization Spotted by Coverity. --- src/mathed/InsetMathColor.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mathed

[LyX/master] Indicate that we do not use a return value

2021-03-05 Thread Jean-Marc Lasgouttes
commit 4828dfb441775d00e5f7ebcb38544405bc713980 Author: Jean-Marc Lasgouttes Date: Fri Mar 5 13:12:58 2021 +0100 Indicate that we do not use a return value Please Coverity. --- src/lyxfind.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src

Re: [LyX/master] Meet per-document spelling dictionaries (fixes #86 [sic!])

2021-03-06 Thread Jean-Marc Lasgouttes
Le 06/03/2021 à 16:52, Juergen Spitzmueller a écrit : commit 07396ab2445720b21dc8195816eb1aee1f2ae3a7 Author: Juergen Spitzmueller Date: Sat Mar 6 16:53:33 2021 +0100 Meet per-document spelling dictionaries (fixes #86 [sic!]) Great news! Now who can beat that? ;-) You are chea

[LyX/2.3.x] Avoid pointless 'undefined flex inset' errors

2021-03-06 Thread Jean-Marc Lasgouttes
commit 2089fa7fa07ec38704529302aa8d620c1fc11018 Author: Jean-Marc Lasgouttes Date: Tue Mar 2 09:12:47 2021 +0100 Avoid pointless 'undefined flex inset' errors When switching class, it does not make sense to flag flex insets that are undefined if they were already

[LyX/master] Compilation fix

2021-03-06 Thread Jean-Marc Lasgouttes
commit 4210f4c9cc813cc981fec6a90779ecfe4da1df46 Author: Jean-Marc Lasgouttes Date: Sat Mar 6 19:58:18 2021 +0100 Compilation fix --- src/EnchantChecker.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/EnchantChecker.cpp b/src/EnchantChecker.cpp index

[LyX/master] Do not toggle on (all) layouts in force plain

2021-03-06 Thread Jean-Marc Lasgouttes
commit 5d269df60674df4b8f5f56cdf4e16c88f23df32b Author: Daniel Ramoeller Date: Sat Mar 6 11:50:11 2021 +0100 Do not toggle on (all) layouts in force plain Fix for #12179. --- src/Text3.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Text3.cpp b/sr

[LyX/master] Fix display of emphasize in slanted text

2021-03-07 Thread Jean-Marc Lasgouttes
commit 610ea7f4f503d690287c75fc5e8b003e1d7b5c96 Author: Jean-Marc Lasgouttes Date: Sun Mar 7 13:29:21 2021 +0100 Fix display of emphasize in slanted text Fixes bug #12175. --- src/FontInfo.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/FontInfo.h

[LyX/master] Fix debug output of FunCode

2021-03-09 Thread Jean-Marc Lasgouttes
commit 5d8f3a930770f4f6d3bbdaf3afb3e001ee824188 Author: Jean-Marc Lasgouttes Date: Tue Mar 9 16:26:44 2021 +0100 Fix debug output of FunCode Outputing the FuncCode enum to a stream using the << operator does not work well. Actually I am not sure whether the <<

[LyX/master] Constify some Paragraph::Private methods

2021-03-09 Thread Jean-Marc Lasgouttes
commit 87e59caebe3982d91fd0ac999dc8f34cc7f1105f Author: Jean-Marc Lasgouttes Date: Tue Mar 9 16:46:05 2021 +0100 Constify some Paragraph::Private methods --- src/Paragraph.cpp | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Paragraph.cpp b/src

[LyX/master] Fixup fbf22bb3: really avoid screen-jumping with mouse click.

2021-03-10 Thread Jean-Marc Lasgouttes
commit b87a81c39477ea86499f67db31003dbb1b3f76d1 Author: Jean-Marc Lasgouttes Date: Wed Mar 10 10:42:24 2021 +0100 Fixup fbf22bb3: really avoid screen-jumping with mouse click. It turns out that the commit from gadmm's lyx-unstable has been cherry-picked at the wrong

[LyX/master] Constification

2021-03-10 Thread Jean-Marc Lasgouttes
commit 776807a5367fbaad64a652f33f1130240b863d71 Author: Jean-Marc Lasgouttes Date: Wed Mar 10 10:42:15 2021 +0100 Constification --- src/BufferView.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 7b5b3c1

[LyX/master] Code reformatting.

2021-03-10 Thread Jean-Marc Lasgouttes
commit 9a2b8c87cd4c0a6bbaf231124b002b3835efb9b7 Author: Jean-Marc Lasgouttes Date: Wed Mar 10 10:41:49 2021 +0100 Code reformatting. --- src/BufferView.cpp |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 29056b1

[LyX/master] Adjust bookmark position when inserting/deleting from paragraph

2021-03-11 Thread Jean-Marc Lasgouttes
commit 86bfa10abb57a0af7bbddc3af2c7cdb891c77203 Author: Jean-Marc Lasgouttes Date: Thu Mar 11 15:57:06 2021 +0100 Adjust bookmark position when inserting/deleting from paragraph Without this, bookmarks positions drift when editing. --- src/Paragraph.cpp |9 + src

[LyX/master] Fix bookmarks-goto inside insets.

2021-03-11 Thread Jean-Marc Lasgouttes
commit 447a1056b4f97b102db9666a131ce85001c0676c Author: Jean-Marc Lasgouttes Date: Thu Mar 11 16:16:11 2021 +0100 Fix bookmarks-goto inside insets. A stupid oversight, as far as I can see. --- src/BufferView.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

Re: [LyX/master] Yet another deprecation fix (this is the last one I am aware of)

2021-03-12 Thread Jean-Marc Lasgouttes
Le 12/03/2021 à 12:11, Juergen Spitzmueller a écrit : commit 9f92fc92bdd41c367b0975454a01c15403d51a60 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) It would be nice to backport all these fixes to 2.3.x

[LyX/master] Fixup 86bfa10a: add checks before updating bookmarks

2021-03-12 Thread Jean-Marc Lasgouttes
commit ac8948b8e00c4b517a117cc36b01b696def668c1 Author: Jean-Marc Lasgouttes Date: Fri Mar 12 17:37:31 2021 +0100 Fixup 86bfa10a: add checks before updating bookmarks When doing cut and paste, it can happen that inset_owner_ is null, or that the inset is not related to a

[LyX/2.3.x] rawName() is only used with Qt4.

2021-03-13 Thread Jean-Marc Lasgouttes
commit 847312daea54fc703b0c679ef3b02797b55d10ba Author: Jean-Marc Lasgouttes Date: Sat Mar 13 21:57:18 2021 +0100 rawName() is only used with Qt4. Fixes warning: ../../../../stable/src/frontends/qt4/GuiFontLoader.cpp:132:9: warning: ‘QString lyx::frontend::{anonymous

[LyX/master] Remove unneeded InsetFootlike::metrics/draw() methods

2021-03-24 Thread Jean-Marc Lasgouttes
commit b37929fdb33222bf55505343647838d0665a9e02 Author: Jean-Marc Lasgouttes Date: Wed Mar 24 14:51:41 2021 +0100 Remove unneeded InsetFootlike::metrics/draw() methods The font is already set to the buffer font when called from TextMetrics::redoParagraph and RowPainter

[LyX/master] Remove tweaks of [pm]i.base.font in InsetCaption

2021-03-24 Thread Jean-Marc Lasgouttes
commit d03435bc777c3e8e811eca2d61fcce999679ee47 Author: Jean-Marc Lasgouttes Date: Wed Mar 24 16:27:05 2021 +0100 Remove tweaks of [pm]i.base.font in InsetCaption Captions do not reset font settings (try to insert caption in emph context). Part of investigation of bug

[LyX/master] Move getFont and getLabelFont from InsetCollapsible to Inset

2021-03-24 Thread Jean-Marc Lasgouttes
commit 56bd50ea6c6dff71349848dc7bb2dd4bcdcee446 Author: Jean-Marc Lasgouttes Date: Wed Mar 24 20:00:51 2021 +0100 Move getFont and getLabelFont from InsetCollapsible to Inset Also move around getLayout and isPassThru. Part of investigation of bug #12204. --- src/insets

[LyX/master] Move code responsible to set TextMetrics outer font to InsetText

2021-03-24 Thread Jean-Marc Lasgouttes
commit 06a77312749f679b0c81a8a4b7277c17bd684262 Author: Jean-Marc Lasgouttes Date: Wed Mar 24 20:25:50 2021 +0100 Move code responsible to set TextMetrics outer font to InsetText This code was previously in InsetCollapsible for no good reason. Move it to a new function

[LyX/master] Set explicitly outer font when inserting text inset.

2021-03-25 Thread Jean-Marc Lasgouttes
commit efbc37926fb98fbffdc8e93091412861c6276116 Author: Jean-Marc Lasgouttes Date: Thu Mar 25 10:52:21 2021 +0100 Set explicitly outer font when inserting text inset. Now it is possible to set this font directly instead of relying on metrics() side effects. Do that to avoid

[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/

[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] 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/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] 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/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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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/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 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/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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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 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] 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] 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] 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] 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] 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] 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

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/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

[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] 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] 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] 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] 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] 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] 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] 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

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 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

[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/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/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] 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 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] 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/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 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] 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/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] 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] 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/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/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] 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] 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] 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/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/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] 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/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/

<    9   10   11   12   13   14   15   16   17   18   >