[LyX/2.3.x] When ignoring an update, request one for later

2018-10-04 Thread Jean-Marc Lasgouttes
commit ba3ff646db52efc8faaa735107c5580eae82b29d Author: Jean-Marc Lasgouttes Date: Wed Oct 3 15:57:11 2018 +0200 When ignoring an update, request one for later If we were not ready to paint the screen, this does not mean that we should give up on repainting, just potpone it

[LyX/master] Fix display of gather in lefteqn mode

2018-10-04 Thread Jean-Marc Lasgouttes
commit 7cb0284a3ffa469c4c99184725f5a3e0b4056508 Author: Jean-Marc Lasgouttes Date: Thu Oct 4 16:05:46 2018 +0200 Fix display of gather in lefteqn mode The column is flushed when the display of equations is flushed. Not sure what to do with RtL languages. Fixes

[LyX/master] Remove support for pixmap cache

2018-10-07 Thread Jean-Marc Lasgouttes
commit 9fe101e8900300661c999e1edc834f1dbcf2e40c Author: Jean-Marc Lasgouttes Date: Sun Oct 7 14:48:05 2018 +0200 Remove support for pixmap cache This code has issues and there is no evidence that it improves performance. Remove LyXRC variable \use_pixmap_cache and update

[LyX/master] Followup to 9fe101e8: remove unused method.

2018-10-08 Thread Jean-Marc Lasgouttes
commit 17e2ad927e51be1c450ef8d38a9a7f44f288f807 Author: Jean-Marc Lasgouttes Date: Mon Oct 8 16:03:20 2018 +0200 Followup to 9fe101e8: remove unused method. --- src/frontends/qt4/GuiFontMetrics.cpp |1 + src/frontends/qt4/GuiPainter.cpp | 47

[LyX/master] Compilation fix (with qt4 at least).

2018-10-19 Thread Jean-Marc Lasgouttes
commit 557c2f2bf0b22fb72b3af385571ea7b33ff377fd Author: Jean-Marc Lasgouttes Date: Fri Oct 19 10:02:02 2018 +0200 Compilation fix (with qt4 at least). --- src/support/qstring_helpers.cpp |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/support

[LyX/master] Amend 8d8988de: it is too early for skipping the updateMacros call

2018-10-22 Thread Jean-Marc Lasgouttes
commit 9e7832915f9763510e5820167930a38e16a8321f Author: Jean-Marc Lasgouttes Date: Mon Oct 22 15:29:08 2018 +0200 Amend 8d8988de: it is too early for skipping the updateMacros call --- src/BufferView.cpp |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src

[LyX/2.3.x] Amend 4ecbff00: it is too early for skipping the updateMacros call

2018-10-22 Thread Jean-Marc Lasgouttes
commit b02d9f107552c2cc42d8ff253783911e2bc6078e Author: Jean-Marc Lasgouttes Date: Mon Oct 22 15:29:08 2018 +0200 Amend 4ecbff00: it is too early for skipping the updateMacros call (cherry picked from commit 9e7832915f9763510e5820167930a38e16a8321f) --- src/BufferView.cpp |8

[LyX/master] Remove old workaround that is not needed anymore

2018-11-04 Thread Jean-Marc Lasgouttes
commit 76e99e9a20cf635d20effa597551f3a9af484465 Author: Jean-Marc Lasgouttes Date: Sat Nov 3 14:29:10 2018 + Remove old workaround that is not needed anymore This causes a compilation error with boost 1.69. Fixes bug #11349. --- src/support/FileName.cpp |9

[LyX/master] Fix selection of unmarked RtL text

2018-11-04 Thread Jean-Marc Lasgouttes
commit 1bed76e2a1057ab2f3f33f01ec23956653265d4a Author: Jean-Marc Lasgouttes Date: Sat Nov 3 15:55:33 2018 + Fix selection of unmarked RtL text With Qt 5.11 at least, RtL text will be drawn RtL even when the (undocumented) flag Qt::TextForceLeftToRight is applied to the

[LyX/master] Avoid extra space in tooltips

2018-11-04 Thread Jean-Marc Lasgouttes
commit 7db99672e6838535d837096ab2344e7ecedb47e3 Author: Jean-Marc Lasgouttes Date: Sun Nov 4 13:53:36 2018 -1000 Avoid extra space in tooltips When using QTextDocument to check the natutal size of a text, one has to remove the text margin, which is not useful here

[LyX/master] When inserting math inset over selection, place cursor better

2018-11-07 Thread Jean-Marc Lasgouttes
commit b0937fb93e1195c0fe523d269ae31412dc2c4044 Author: Jean-Marc Lasgouttes Date: Mon Nov 5 21:29:22 2018 -1000 When inserting math inset over selection, place cursor better This is a follow up to 503c7c16. The new argument for placing cursor after insertion of inset is

[LyX/master] Change cell numbers so that 0 is the main cell

2018-11-07 Thread Jean-Marc Lasgouttes
commit 097da3a943dc5b7df5272860662c41ed625d849a Author: Jean-Marc Lasgouttes Date: Mon Nov 5 21:29:47 2018 -1000 Change cell numbers so that 0 is the main cell This leads to code simplification in overset, root and underset. Further simplification is possible. --- src/mathed

[LyX/master] Fixup 097da3a9: update the math parser

2018-11-07 Thread Jean-Marc Lasgouttes
commit 974766cd1c90edb7cc70bd0146ee59594aef321a Author: Jean-Marc Lasgouttes Date: Wed Nov 7 08:24:54 2018 -1000 Fixup 097da3a9: update the math parser One has to account for the change in cell numbering. --- src/mathed/MathParser.cpp | 16 ++-- 1 files changed, 10

[LyX/master] Fixup 097da3a9: fix horizontal navigatiion in InsetMathRoot

2018-11-07 Thread Jean-Marc Lasgouttes
commit 2daf493cbcb3b72ae93f7286e781508957fd1cc6 Author: Jean-Marc Lasgouttes Date: Wed Nov 7 11:53:00 2018 -1000 Fixup 097da3a9: fix horizontal navigatiion in InsetMathRoot Exchanging cells 0 and 1 requires to implement idxBackWard/Forward. --- src/mathed/InsetMathRoot.cpp | 24

[LyX/master] improve left/right navigation in root inset

2018-11-09 Thread Jean-Marc Lasgouttes
commit ee9451aaf58d15e82b1e25eea13a11a6b4906cad Author: Jean-Marc Lasgouttes Date: Thu Nov 8 21:22:04 2018 -0800 improve left/right navigation in root inset Now the cursor is correctly set when changing cell with xursor left/right. --- src/mathed/InsetMathRoot.cpp |8

[LyX/master] Make cell-forward/backward cycle in math

2018-11-09 Thread Jean-Marc Lasgouttes
commit 93db2bd08e4c1a9b5e78aecbb71055f22fa3683e Author: Jean-Marc Lasgouttes Date: Fri Nov 9 15:21:55 2018 + Make cell-forward/backward cycle in math Make cell-backward put the cursor at the end of cell when using mac-like cursor movement. --- src/mathed/InsetMathGrid.cpp

[LyX/master] Change IgnoreFormats to a proper class

2018-11-09 Thread Jean-Marc Lasgouttes
commit 7055bb0098f2dd60bfa8054a4841a6c5bd485eb3 Author: Jean-Marc Lasgouttes Date: Thu Nov 8 21:07:17 2018 -0800 Change IgnoreFormats to a proper class Instantiate a global variabble holding the formats and allow to modify it using the helper function setIgnoreFormat. --- src

[LyX/master] Typo

2018-11-12 Thread Jean-Marc Lasgouttes
commit 1ff0816a022355d0a7200eb69eca374bd65d34c5 Author: Jean-Marc Lasgouttes Date: Mon Nov 12 11:41:54 2018 +0100 Typo --- src/BufferView.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index ce1ec72..c8a43a0 100644

[LyX/2.3.x] Avoid extra space in tooltips

2018-11-21 Thread Jean-Marc Lasgouttes
commit c1df5fb6efab2f8744a4052638f5e24fe88a7014 Author: Jean-Marc Lasgouttes Date: Sun Nov 4 13:53:36 2018 -1000 Avoid extra space in tooltips When using QTextDocument to check the natutal size of a text, one has to remove the text margin, which is not useful here

[LyX/master] Show cursor correctly whn loading file

2018-11-22 Thread Jean-Marc Lasgouttes
commit 2dc84b69d5a040e6343e21606f1c16a7c0957383 Author: Jean-Marc Lasgouttes Date: Wed Nov 21 13:49:20 2018 +0100 Show cursor correctly whn loading file This is a fixup to 8d8988de4. When a file is loaded and the cursor is set, it is required to first compute metrics to be

[LyX/master] Update to boost 1.68

2018-11-23 Thread Jean-Marc Lasgouttes
commit c40d23deacc277e4a862db803c565ff04e6031f1 Author: Jean-Marc Lasgouttes Date: Fri Nov 23 16:14:23 2018 +0100 Update to boost 1.68 This avoids warnings from gcc 8 3rdparty/boost/boost/bind/bind.hpp | 37 + 3rdparty/boost/boost/bind/bind_cc.hpp

[LyX/master] Fix undo after breaking a nested paragraph

2018-11-23 Thread Jean-Marc Lasgouttes
commit 57feb0fed0c078903900aaea069c49207c8cb9ac Author: Jean-Marc Lasgouttes Date: Fri Nov 23 16:53:53 2018 +0100 Fix undo after breaking a nested paragraph We have to take into account that Buffer::updateBuffer can modify the document. Fix bug #11292. --- src/frontends

[LyX/2.3.x] Show cursor correctly when loading file

2018-11-23 Thread Jean-Marc Lasgouttes
commit f7ebe1f70f137e8e08563ef4b8a8579a9a0ec40f Author: Jean-Marc Lasgouttes Date: Wed Nov 21 13:49:20 2018 +0100 Show cursor correctly when loading file This is a fixup to 4ecbff00. When a file is loaded and the cursor is set, it is required to first compute metrics to be

[LyX/master] Fix compilation with msvc 2015

2018-11-24 Thread Jean-Marc Lasgouttes
commit e2a3dd1167b6e3350245500fa7cadcc356e59b8e Author: Jean-Marc Lasgouttes Date: Sat Nov 24 19:17:31 2018 +0100 Fix compilation with msvc 2015 Without this, the compiler does not know whether 0 is a size_t or char const *. --- src/lyxfind.cpp |2 +- 1 files changed, 1

[LyX/master] Set buffer correctly when changing math space type.

2018-12-13 Thread Jean-Marc Lasgouttes
commit 2ec25c8eef8c9acca3cb572800eab933c8564831 Author: Jean-Marc Lasgouttes Date: Thu Dec 13 10:27:20 2018 +0100 Set buffer correctly when changing math space type. Fixes bug #7747. --- src/mathed/InsetMathSpace.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions

[LyX/2.3.x] Remove old workaround that is not needed anymore

2018-12-13 Thread Jean-Marc Lasgouttes
commit 3a123b90af838b08680471d87170c38e56787df9 Author: Jean-Marc Lasgouttes Date: Sat Nov 3 14:29:10 2018 + Remove old workaround that is not needed anymore This causes a compilation error with boost 1.69. Fixes bug #11349. (cherry picked from commit

[LyX/2.3.x] Fix selection of unmarked RtL text

2018-12-13 Thread Jean-Marc Lasgouttes
commit 7950ace3d96543e3099aa3bde823f970a1ce6a86 Author: Jean-Marc Lasgouttes Date: Sat Nov 3 15:55:33 2018 + Fix selection of unmarked RtL text With Qt 5.11 at least, RtL text will be drawn RtL even when the (undocumented) flag Qt::TextForceLeftToRight is applied to the

Re: [LyX/master] Update to boost 1.68

2018-12-13 Thread Jean-Marc Lasgouttes
Le 23/11/2018 à 16:14, Jean-Marc Lasgouttes a écrit : commit c40d23deacc277e4a862db803c565ff04e6031f1 Author: Jean-Marc Lasgouttes Date: Fri Nov 23 16:14:23 2018 +0100 Update to boost 1.68 This avoids warnings from gcc 8 Riki, can this be done in stable branch too? The

[LyX/2.3.x] Make sure inset buffer is correctly set in math grid

2018-12-14 Thread Jean-Marc Lasgouttes
commit ebe6612e2661f49dcfae6103f056c27afd47751f Author: Jean-Marc Lasgouttes Date: Wed Oct 3 10:39:09 2018 +0200 Make sure inset buffer is correctly set in math grid Make MathData::setBuffer set the buffer of insets that it contains. Remove corresponding code from

[LyX/2.3.x] Set buffer correctly when changing math space type.

2018-12-14 Thread Jean-Marc Lasgouttes
commit 0e6cb4e599cc8aaf191200a963fa916274dc9b7f Author: Jean-Marc Lasgouttes Date: Thu Dec 13 10:27:20 2018 +0100 Set buffer correctly when changing math space type. Fixes bug #7747. (cherry picked from commit 2ec25c8eef8c9acca3cb572800eab933c8564831) --- src/mathed

[LyX/2.3.x] Update boost to 1.68.

2018-12-16 Thread Jean-Marc Lasgouttes
commit 09d742cc7f1707dfc04925912d11846ae0213172 Author: Jean-Marc Lasgouttes Date: Sun Dec 16 21:45:02 2018 +0100 Update boost to 1.68. This avoid lots of warnings from gcc 8. 3rdparty/boost/boost/any.hpp | 20 +- 3rdparty/boost/boost/array.hpp

[LyX/2.3.x] Fix undo after breaking a nested paragraph

2018-12-16 Thread Jean-Marc Lasgouttes
commit 47adf27ac3b90ef7899f838da7cee56c72e6ea0e Author: Jean-Marc Lasgouttes Date: Fri Nov 23 16:53:53 2018 +0100 Fix undo after breaking a nested paragraph We have to take into account that Buffer::updateBuffer can modify the document. Fix bug #11292. (cherry

[LyX/master] Fix embarrassing typo

2018-12-17 Thread Jean-Marc Lasgouttes
commit 058c6750ac83b43819445ccf723283afb850ef91 Author: Jean-Marc Lasgouttes Date: Mon Dec 17 12:28:32 2018 +0100 Fix embarrassing typo Not clear whether this caused any bug. --- src/Dimension.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src

[LyX/2.3.x] Fix embarrassing typo

2018-12-17 Thread Jean-Marc Lasgouttes
commit 833adc5c6b9d3b659bb24285bac38f23af66cba3 Author: Jean-Marc Lasgouttes Date: Mon Dec 17 12:28:32 2018 +0100 Fix embarrassing typo Not clear whether this caused any bug. (cherry picked from commit 058c6750ac83b43819445ccf723283afb850ef91) --- src/Dimension.h |4

[LyX/master] Make DEPM respect current cursor position.

2018-12-21 Thread Jean-Marc Lasgouttes
commit dff0c5729e6eec4c799f60171e4d0a377327ab10 Author: Jean-Marc Lasgouttes Date: Fri Dec 21 15:36:55 2018 +0100 Make DEPM respect current cursor position. Spaces are now conserved when they surround current cursor. Examples: abc | def becomes abc | def

[LyX/2.3.x] Make DEPM respect current cursor position.

2018-12-21 Thread Jean-Marc Lasgouttes
commit 714b731e398b89aaea403dab9929648534e7adc7 Author: Jean-Marc Lasgouttes Date: Fri Dec 21 15:36:55 2018 +0100 Make DEPM respect current cursor position. Spaces are now conserved when they surround current cursor. Examples: abc | def becomes abc | def

[LyX/master] Remove premature (and bad) optimization

2019-01-02 Thread Jean-Marc Lasgouttes
commit fba9f5b9e884f0a988bd77992772eb4986eecdec Author: Jean-Marc Lasgouttes Date: Wed Jan 2 18:36:02 2019 +0100 Remove premature (and bad) optimization When blinking the caret, it looks like a cool idea to only update the small rectangle containing the caret. Actually it is

[LyX/master] Add override statements to please clang

2019-01-02 Thread Jean-Marc Lasgouttes
commit c8f4b68423520378d02fe9f953d94759b862dc55 Author: Jean-Marc Lasgouttes Date: Wed Jan 2 18:49:23 2019 +0100 Add override statements to please clang Eventually, all overridden virtual methods should be marked properly. Currently, clang only warns about those in classes

[LyX/2.3.x] Add override statements to please clang

2019-01-03 Thread Jean-Marc Lasgouttes
commit b9116e8b81f55ee795ea444ee02ff921bf82606a Author: Jean-Marc Lasgouttes Date: Wed Jan 2 18:49:23 2019 +0100 Add override statements to please clang Eventually, all overridden virtual methods should be marked properly. Currently, clang only warns about those in classes

[LyX/master] Fix vertical offset of fonts like MinionPro

2019-01-03 Thread Jean-Marc Lasgouttes
commit d8498d4785282a6f42a69f56ebd46ac32e1d2f51 Author: Jean-Marc Lasgouttes Date: Thu Jan 3 12:14:27 2019 +0100 Fix vertical offset of fonts like MinionPro For some reason, adding a LTR/RTL Override unicode character before a MinionPro string increases the ascent of the line

[LyX/2.3.x] Remove premature (and bad) optimization

2019-01-03 Thread Jean-Marc Lasgouttes
commit 1e2b503ac934e06cdd253b1d3d80c5ae7122c35b Author: Jean-Marc Lasgouttes Date: Wed Jan 2 18:36:02 2019 +0100 Remove premature (and bad) optimization When blinking the caret, it looks like a cool idea to only update the small rectangle containing the caret. Actually it is

[LyX/master] Remove unused mathod (CursorSlice::at_cell_end is the same)

2019-01-04 Thread Jean-Marc Lasgouttes
commit f97c11f4e9b0f99f49a16e367c6a0eb692fdcdc3 Author: Jean-Marc Lasgouttes Date: Fri Jan 4 13:54:42 2019 +0100 Remove unused mathod (CursorSlice::at_cell_end is the same) --- src/DocIterator.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/DocIterator.h b

[LyX/master] Avoid crash when using inset-select-all in tabular

2019-01-04 Thread Jean-Marc Lasgouttes
commit a69e01d0b47aebbdfc3139533fcb7f1d0c04f156 Author: Jean-Marc Lasgouttes Date: Fri Jan 4 13:57:13 2019 +0100 Avoid crash when using inset-select-all in tabular When changing cell idx, it is important to set the pit to a reasonable value. --- src/BufferView.cpp |2

[LyX/master] Fix drawing of labels in insets

2019-01-04 Thread Jean-Marc Lasgouttes
commit 5c1d65afee3a37d5befcf9eb55d8d50e1d8e4f13 Author: Jean-Marc Lasgouttes Date: Fri Jan 4 16:24:18 2019 +0100 Fix drawing of labels in insets In many cases, the origin xo_ of insets was forgotten. Fixes bug #11425. --- src/RowPainter.cpp | 10 +- 1 files

[LyX/master] Fixup 5c1d65af: proper spacing between text and label in rtl

2019-01-04 Thread Jean-Marc Lasgouttes
commit 5fc035f99c42835da41d6eb6cf5a375382c06870 Author: Jean-Marc Lasgouttes Date: Fri Jan 4 17:13:10 2019 +0100 Fixup 5c1d65af: proper spacing between text and label in rtl Fix bug #11425. --- src/RowPainter.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[LyX/2.3.x] Fix vertical offset of fonts like MinionPro

2019-01-05 Thread Jean-Marc Lasgouttes
commit e73c0d6387f0be4b1d5e3a47e0b6d29585c52cbc Author: Jean-Marc Lasgouttes Date: Thu Jan 3 12:14:27 2019 +0100 Fix vertical offset of fonts like MinionPro For some reason, adding a LTR/RTL Override unicode character before a MinionPro string increases the ascent of the line

[LyX/2.3.x] Avoid crash when using inset-select-all in tabular

2019-01-05 Thread Jean-Marc Lasgouttes
commit 7f3407b89ac19f32e5a7af8f46de7b247d82a48e Author: Jean-Marc Lasgouttes Date: Fri Jan 4 13:57:13 2019 +0100 Avoid crash when using inset-select-all in tabular When changing cell idx, it is important to set the pit to a reasonable value. (cherry picked from commit

[LyX/2.3.x] Fix drawing of labels in insets

2019-01-05 Thread Jean-Marc Lasgouttes
commit 3a4c4605e9cc06f700cdfeb43f3a91592adea99a Author: Jean-Marc Lasgouttes Date: Fri Jan 4 16:24:18 2019 +0100 Fix drawing of labels in insets In many cases, the origin xo_ of insets was forgotten. Also fix spacing between text and label in rtl Fixes bug #11425

[LyX/2.3.x] forgot this

2019-01-05 Thread Jean-Marc Lasgouttes
commit ca8f6c09b664872019eb504b151e0e6cfbdfbd21 Author: Jean-Marc Lasgouttes Date: Sat Jan 5 15:04:51 2019 +0100 forgot this --- status.23x |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/status.23x b/status.23x index b8e5306..07e2adc 100644 --- a/status.23x

[LyX/2.3.x] Allow toggling (no)limits only after mathop symbol

2019-01-05 Thread Jean-Marc Lasgouttes
commit 85e693806e206b24e9fd7d010368fba36a2b9710 Author: Jean-Marc Lasgouttes Date: Mon Sep 3 17:49:54 2018 +0200 Allow toggling (no)limits only after mathop symbol In particular, introduce the new InsetMathScript::allowLimits method that checks for that and honor it in

[LyX/2.3.x] Fix display of gather in lefteqn mode

2019-01-07 Thread Jean-Marc Lasgouttes
commit e8d96cb9b159c0e61c669b9a64e5deff00b4be9b Author: Jean-Marc Lasgouttes Date: Thu Oct 4 16:05:46 2018 +0200 Fix display of gather in lefteqn mode The column is flushed when the display of equations is flushed. Not sure what to do with RtL languages. Fixes

[LyX/master] use range-based for loops

2019-01-07 Thread Jean-Marc Lasgouttes
commit 4bc8e90c25c076015733c98da7743c72e3a8b757 Author: Jean-Marc Lasgouttes Date: Mon Jan 7 13:50:55 2019 +0100 use range-based for loops --- src/RowPainter.cpp | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp

[LyX/master] Fix alignment of rows when text width is variable

2019-01-11 Thread Jean-Marc Lasgouttes
commit edb46d2a949c2832ab3b594fd0006f092ec0421c Author: Jean-Marc Lasgouttes Date: Fri Jan 11 15:55:17 2019 +0100 Fix alignment of rows when text width is variable When several lines of text are in the same variable-width tabular cell, it is not possible to align properly the

[LyX/master] Allow to type a space in front of another one

2019-01-14 Thread Jean-Marc Lasgouttes
commit 7848d3c90c0837e8e8549db37bf4bc5cd7e7dad1 Author: Jean-Marc Lasgouttes Date: Mon Jan 14 16:37:10 2019 +0100 Allow to type a space in front of another one This is a follow-up to 714b731e. This fixes the issue when the cursor is in front of a space abc| def and

[LyX/2.3.x] Allow to type a space in front of another one

2019-01-16 Thread Jean-Marc Lasgouttes
commit aa2f5eb426db6d3ea307c726fe7d649d9634f92d Author: Jean-Marc Lasgouttes Date: Mon Jan 14 16:37:10 2019 +0100 Allow to type a space in front of another one This is a follow-up to 714b731e. This fixes the issue when the cursor is in front of a space abc| def and

[LyX/master] Try to compute row height like it should be done

2019-01-16 Thread Jean-Marc Lasgouttes
commit 66a3d64346332e47252b37dbc0f80158738987dc Author: Jean-Marc Lasgouttes Date: Thu Jan 3 16:03:48 2019 +0100 Try to compute row height like it should be done Currently, our computation of row height is not completely standard: * we ignore completely the QFontMetrics

[LyX/master] Fix for #11294: Wrong description for Change bars module

2019-01-19 Thread Jean-Marc Lasgouttes
commit f71723c8f333819bcaa5180fe98d9cd4c1491ba8 Author: Daniel Ramoeller Date: Mon Dec 31 12:14:46 2018 +0100 Fix for #11294: Wrong description for Change bars module --- lib/layouts/changebars.module |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/layouts/cha

[LyX/master] Take care of spaces tracked as inserted in depm

2019-01-28 Thread Jean-Marc Lasgouttes
commit 4435be026ed5a766ad73b9158e1425afedf38630 Author: Jean-Marc Lasgouttes Date: Mon Jan 28 10:21:26 2019 +0100 Take care of spaces tracked as inserted in depm When there are Change::INSERTED spaces in the range of consecutive spaces to delete, it is better to remove them

[LyX/master] DEPM: some factorization beween both versions

2019-01-29 Thread Jean-Marc Lasgouttes
commit 5c380dcc732b1afda3c4413a56773b2e264d9ae2 Author: Jean-Marc Lasgouttes Date: Tue Jan 29 14:38:17 2019 +0100 DEPM: some factorization beween both versions Additionally, correct the cursor by an offset equal to the variation of paragraph size : if change tracking is on

[LyX/master] Fix DEPM at end of paragraph

2019-01-30 Thread Jean-Marc Lasgouttes
commit c00234503f9e07795723222e6095c022e45ad1dd Author: Jean-Marc Lasgouttes Date: Wed Jan 30 23:50:53 2019 +0100 Fix DEPM at end of paragraph Remove special handling of spaces at end of paragraph. Now they are handled like interword spaces by both DEPM methods. Fix

[LyX/master] Do not rely on x_ when painting label

2019-02-04 Thread Jean-Marc Lasgouttes
commit 051b6ce68af2b7b075e1abb89e1e960beae71379 Author: Jean-Marc Lasgouttes Date: Mon Feb 4 12:13:01 2019 +0100 Do not rely on x_ when painting label Additionally fixes a warning about unused value (from clang-analyzer). --- src/RowPainter.cpp | 10 +++--- src

[LyX/master] DEPM: fix infinite loop.

2019-02-05 Thread Jean-Marc Lasgouttes
commit 5e4fd6c796705ccd752b2dc26e4bd2b42bb11371 Author: Jean-Marc Lasgouttes Date: Tue Feb 5 11:51:24 2019 +0100 DEPM: fix infinite loop. --- src/Text2.cpp | 24 +++- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index

[LyX/master] Fix algorithm for finding localized files

2019-02-06 Thread Jean-Marc Lasgouttes
commit e203bf519b4dd69f17a2f8cabb6607d2f73dce71 Author: Jean-Marc Lasgouttes Date: Wed Feb 6 15:49:53 2019 +0100 Fix algorithm for finding localized files Now we search in priority with the GUI language, and then the language(s) specified in the LANGUAGES environment variable

[LyX/2.3.x] Fix algorithm for finding localized files

2019-02-07 Thread Jean-Marc Lasgouttes
commit 4c18a49c879518f763985b6171fe5f4491d0f019 Author: Jean-Marc Lasgouttes Date: Wed Feb 6 15:49:53 2019 +0100 Fix algorithm for finding localized files Now we search in priority with the GUI language, and then the language(s) specified in the LANGUAGES environment variable

[LyX/master] Fix Visual C++ warnning

2019-02-11 Thread Jean-Marc Lasgouttes
commit 2215f4c2b43f9c282f35984182dcd958c8a27ced Author: Jean-Marc Lasgouttes Date: Mon Feb 11 10:43:59 2019 +0100 Fix Visual C++ warnning --- src/RowPainter.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index

[LyX/2.3.x] Fix Visual C++ warning

2019-02-11 Thread Jean-Marc Lasgouttes
commit 96ef3d320b66e7daa73d88de548b1bb617cdc1cd Author: Jean-Marc Lasgouttes Date: Mon Feb 11 10:43:59 2019 +0100 Fix Visual C++ warning (cherry picked from commit 2215f4c2b43f9c282f35984182dcd958c8a27ced) --- src/RowPainter.cpp |4 ++-- 1 files changed, 2 insertions(+), 2

[LyX/2.3.x] Fix position of cursor when DEPM is used in change tracking mode

2019-02-15 Thread Jean-Marc Lasgouttes
commit 484128d05b95a014b4511bff891bf90c17f69d72 Author: Jean-Marc Lasgouttes Date: Tue Jan 29 10:55:12 2019 +0100 Fix position of cursor when DEPM is used in change tracking mode When change tracking is active, it may happen that spaces are marked as deleted instead of being

[LyX/2.3.x] Fix DEPM at end of paragraph

2019-02-15 Thread Jean-Marc Lasgouttes
commit c44dc071a5658380a1d6bdfcb6f138b70c17d2a5 Author: Jean-Marc Lasgouttes Date: Wed Jan 30 23:50:53 2019 +0100 Fix DEPM at end of paragraph Remove special handling of spaces at end of paragraph. Now they are handled like interword spaces by both DEPM methods. Fix

[LyX/2.3.x] Improve DEPM when change tracking is on

2019-02-15 Thread Jean-Marc Lasgouttes
commit 7f177d8d4a88d84142bdd2939d4c65abe4b50a11 Author: Jean-Marc Lasgouttes Date: Tue Jan 29 11:20:22 2019 +0100 Improve DEPM when change tracking is on A typical problem when change tracking is on is: 1/ insert a new space between two words (as if you want to insert a new

[LyX/master] Initialize member

2019-02-18 Thread Jean-Marc Lasgouttes
commit c521e3e1de960ba3c45c0e83d04d86f5e7c68d58 Author: Jean-Marc Lasgouttes Date: Mon Feb 18 15:10:05 2019 +0100 Initialize member Spotted by coverity --- src/insets/InsetLayout.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/insets

[LyX/master] DEPM: allow to delete empty paragraphs after deleting extra spaces

2019-02-18 Thread Jean-Marc Lasgouttes
commit 386a347484669d9b498699c7cc42be400ad8ba81 Author: Jean-Marc Lasgouttes Date: Fri Feb 15 16:23:46 2019 +0100 DEPM: allow to delete empty paragraphs after deleting extra spaces Remove return statement when spaces have been deleted. Add an early return in part 2 when

[LyX/master] DEPM: handle undo when deleting spaces

2019-02-18 Thread Jean-Marc Lasgouttes
commit 2dc62d0405e1ea1722cee933e02e528bea5e0f8e Author: Jean-Marc Lasgouttes Date: Fri Feb 15 15:33:23 2019 +0100 DEPM: handle undo when deleting spaces Also, do not do any DEPM when the buffer is read-only. --- src/Text.h|4 ++-- src/Text2.cpp |5 + 2 files

[LyX/master] DEPM: do not strip explicitly leading spaces

2019-02-18 Thread Jean-Marc Lasgouttes
commit aaab1ad65d38c1ddaf68dfd1c4891ded26013ae0 Author: Jean-Marc Lasgouttes Date: Fri Feb 15 16:07:00 2019 +0100 DEPM: do not strip explicitly leading spaces For the local version of DEPM, only what was around old cursor should change For the global version, leading

[LyX/master] Do a round of DEPM after changing layout

2019-02-18 Thread Jean-Marc Lasgouttes
commit 26ad2c6a67239b328266b355132664666a8af728 Author: Jean-Marc Lasgouttes Date: Fri Feb 15 17:17:56 2019 +0100 Do a round of DEPM after changing layout --- src/Text2.cpp |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index

[LyX/master] DEPM: document that Freespacing implies KeepEmpty.

2019-02-18 Thread Jean-Marc Lasgouttes
commit 6293bdbb5a5d42f3834c10e3a9689bc346550976 Author: Jean-Marc Lasgouttes Date: Mon Feb 18 12:42:36 2019 +0100 DEPM: document that Freespacing implies KeepEmpty. --- lib/doc/Customization.lyx | 57 +--- 1 files changed, 53 insertions(+), 4

[LyX/master] DEPM: reorganize a bit (no change intended)

2019-02-18 Thread Jean-Marc Lasgouttes
commit b59b968c3eae5cc0d5ea40444f85cd693751c688 Author: Jean-Marc Lasgouttes Date: Fri Feb 15 15:49:53 2019 +0100 DEPM: reorganize a bit (no change intended) Exit early if the cursor has not moved. Place comments where they belong. --- src/Text2.cpp | 111

[LyX/master] DEPM: replace loop by existing method

2019-02-18 Thread Jean-Marc Lasgouttes
commit 1f1a1b0dc7fa31ef167bedd8f00c0e83ae56717e Author: Jean-Marc Lasgouttes Date: Fri Feb 15 16:02:49 2019 +0100 DEPM: replace loop by existing method --- src/Text2.cpp |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index

[LyX/master] Rename Row::dimension() to dim()

2019-02-18 Thread Jean-Marc Lasgouttes
commit a04b5c3965faf79d534f0090712d3e47cebc46ab Author: Jean-Marc Lasgouttes Date: Mon Feb 18 15:46:42 2019 +0100 Rename Row::dimension() to dim() This is what is done elsewhere. --- src/BufferView.cpp |4 ++-- src/Row.h |4 ++-- src/TextMetrics.cpp | 28

[LyX/master] Let tm be a reference here as elsewhere

2019-02-18 Thread Jean-Marc Lasgouttes
commit 10e2c658351c237d3b35566857a533a9d08f7f65 Author: Jean-Marc Lasgouttes Date: Mon Feb 18 15:41:00 2019 +0100 Let tm be a reference here as elsewhere --- src/Text3.cpp | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Text3.cpp b/src

[LyX/master] Remove unused method

2019-02-18 Thread Jean-Marc Lasgouttes
commit 4c90183e4d476730ea297438782cf0d8f47dc149 Author: Jean-Marc Lasgouttes Date: Mon Feb 18 16:03:38 2019 +0100 Remove unused method --- src/insets/RenderBase.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/insets/RenderBase.h b/src/insets/RenderBase.h

[LyX/master] Do not use trailing underscore for local variable

2019-02-18 Thread Jean-Marc Lasgouttes
commit 91fc45ed359413432190a4a323fd7ca73e0238b6 Author: Jean-Marc Lasgouttes Date: Mon Feb 18 16:04:15 2019 +0100 Do not use trailing underscore for local variable --- src/frontends/qt4/GuiApplication.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src

[LyX/master] Rename TextMetrics::dimension() to dim()

2019-02-19 Thread Jean-Marc Lasgouttes
commit 2ae51b947b061dab057aae3c7d43ed5cdc11bd79 Author: Jean-Marc Lasgouttes Date: Tue Feb 19 18:04:43 2019 +0100 Rename TextMetrics::dimension() to dim() --- src/TextMetrics.h|2 +- src/insets/InsetText.cpp |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[LyX/master] Honor Update::SinglePar properly

2019-02-20 Thread Jean-Marc Lasgouttes
commit 9bdc0dab31337fd6788d587127842eb3558881ae Author: Jean-Marc Lasgouttes Date: Wed Feb 20 12:01:44 2019 +0100 Honor Update::SinglePar properly The SinglePar update flags has been a no-op for a long time without naybody noticing. This means that the current paragraph was

[LyX/master] Move some TextMetrics code around.

2019-02-25 Thread Jean-Marc Lasgouttes
commit ab02a907f0de3d638e024dbe65566b85578f12fb Author: Jean-Marc Lasgouttes Date: Mon Feb 25 11:58:50 2019 +0100 Move some TextMetrics code around. No change intended. --- src/TextMetrics.cpp | 100 +- src/TextMetrics.h | 21

[LyX/master] Use range-based loops in BufferList

2019-02-25 Thread Jean-Marc Lasgouttes
commit bc128e7bf897a2fc7ed376eeaffed487068ab33e Author: Jean-Marc Lasgouttes Date: Mon Feb 25 15:14:58 2019 +0100 Use range-based loops in BufferList --- src/BufferList.cpp | 83 ++- src/BufferList.h |2 +- 2 files changed, 30

[LyX/master] Change the way scrolled rows are tracked

2019-02-25 Thread Jean-Marc Lasgouttes
commit 7f0525e9e09459e5bccc8442d889a1aafffa071f Author: Jean-Marc Lasgouttes Date: Thu Feb 21 17:52:36 2019 +0100 Change the way scrolled rows are tracked The goal of this commit is to simplify the logic in TextMetrics::draw. Now, rows are repainted depending on their changed

[LyX/master] Fix help message for --disable-qt5

2019-02-25 Thread Jean-Marc Lasgouttes
commit e78a5bd1a8793addd51b70d4f472fa380b9d6900 Author: Jean-Marc Lasgouttes Date: Mon Feb 25 16:24:30 2019 +0100 Fix help message for --disable-qt5 --- config/lyxinclude.m4 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/config/lyxinclude.m4 b/config

[LyX/master] Make callstack printing useful and optional

2019-02-25 Thread Jean-Marc Lasgouttes
commit 4028eefe6190551c8be96cd451337dea2808742b Author: Jean-Marc Lasgouttes Date: Mon Feb 25 17:37:06 2019 +0100 Make callstack printing useful and optional When callback printing is enabled, link lyx with -rdynamic, so that stacks have LyX symbols available. Add

[LyX/master] Update screen as needed when preferences are changed

2019-02-26 Thread Jean-Marc Lasgouttes
commit 954531f247adee029c12713634a81717f87a2bcf Author: Jean-Marc Lasgouttes Date: Tue Feb 26 16:37:41 2019 +0100 Update screen as needed when preferences are changed This commit removes the adhoc code in GuiPrefs and moves it to LyXRC, so that it triggers in every preference

[LyX/2.3.x] Update screen as needed when preferences are changed

2019-02-27 Thread Jean-Marc Lasgouttes
commit ee8a336cbc407e7fb587e2c155fee8c7a5d76e1e Author: Jean-Marc Lasgouttes Date: Tue Feb 26 16:37:41 2019 +0100 Update screen as needed when preferences are changed This commit removes the adhoc code in GuiPrefs and moves it to LyXRC, so that it triggers in every preference

[LyX/master] Use || instead of or operator

2019-02-28 Thread Jean-Marc Lasgouttes
commit 32d6396f88da6e8537e45a2acaa42cdf361df488 Author: Jean-Marc Lasgouttes Date: Thu Feb 28 12:03:34 2019 +0100 Use || instead of or operator It is more consistent and visual studio seems to dislike it anyway. --- src/BufferParams.cpp |2 +- 1 files changed, 1 insertions

[LyX/master] Make TextMetrics noncopyable

2019-03-12 Thread Jean-Marc Lasgouttes
commit 63bfaa14beef2521759571ca077834a412d12bbc Author: Jean-Marc Lasgouttes Date: Tue Mar 12 12:40:32 2019 +0100 Make TextMetrics noncopyable This is done by declaring unimplemented private copy constructor and assignment operator. This breaks compilation in

[LyX/master] Revert "Let tm be a reference here as elsewhere"

2019-03-12 Thread Jean-Marc Lasgouttes
commit f659af339efad6ed8e35d59404746c343fe9fcbd Author: Jean-Marc Lasgouttes Date: Tue Mar 12 12:44:08 2019 +0100 Revert "Let tm be a reference here as elsewhere" This commit was wrong because a reference variable can never be re-assigned (it would change the origina

[LyX/master] Update poor man's profiler to use C++11 std::chrono

2019-03-17 Thread Jean-Marc Lasgouttes
commit bdf3924fc78d0495b241e2202a9633cded6aca45 Author: Jean-Marc Lasgouttes Date: Sun Mar 17 13:57:44 2019 +0100 Update poor man's profiler to use C++11 std::chrono This is more portable, and the old code prevented in windows to use instrument several classes at the same

[LyX/master] Fix MSVC warning

2019-03-17 Thread Jean-Marc Lasgouttes
commit 9a15d354437a37342cf71a892b8b7a9b5338c5ad Author: Jean-Marc Lasgouttes Date: Sun Mar 17 14:28:22 2019 +0100 Fix MSVC warning --- src/RowPainter.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index a060874

[LyX/master] Compilation fix for Qt < 5.2.

2019-03-20 Thread Jean-Marc Lasgouttes
commit 0c8eea0fe526e17c75c524c0eacdacfd78d8d7b2 Author: Jean-Marc Lasgouttes Date: Wed Mar 20 11:45:29 2019 +0100 Compilation fix for Qt < 5.2. --- src/frontends/qt4/GuiLyXFiles.cpp |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/frontends/

[LyX/master] Cache the value of GuiFontMetrics::lbearing().

2019-03-20 Thread Jean-Marc Lasgouttes
commit d3979e798cd9c85041bb5e6158002384a8cddb8c Author: Jean-Marc Lasgouttes Date: Wed Mar 20 10:56:16 2019 +0100 Cache the value of GuiFontMetrics::lbearing(). This seems to be necessary on windows, where math editing can get very slow. Note that other methods like rbearing

[LyX/master] Initialize hasTitle in Intervall constructor

2019-03-20 Thread Jean-Marc Lasgouttes
commit 1c755fefa50886cf760d0b03b983e49896b16af5 Author: Jean-Marc Lasgouttes Date: Wed Mar 20 17:25:25 2019 +0100 Initialize hasTitle in Intervall constructor I also moved around some things while I was at it. Spotted by coverity scan. --- src/lyxfind.cpp | 20

Re: [LyX/master] Initialize hasTitle in Intervall constructor

2019-03-20 Thread Jean-Marc Lasgouttes
Le 20/03/2019 à 17:21, Jean-Marc Lasgouttes a écrit : commit 1c755fefa50886cf760d0b03b983e49896b16af5 Author: Jean-Marc Lasgouttes Date: Wed Mar 20 17:25:25 2019 +0100 Initialize hasTitle in Intervall constructor I also moved around some things while I was at it

Re: [LyX/master] Initialize hasTitle in Intervall constructor

2019-03-20 Thread Jean-Marc Lasgouttes
Le 20/03/2019 à 23:36, Kornel Benko a écrit : Am Mittwoch, 20. März 2019 17:33:39 CET schrieb Jean-Marc Lasgouttes : Le 20/03/2019 à 17:21, Jean-Marc Lasgouttes a écrit : commit 1c755fefa50886cf760d0b03b983e49896b16af5 Author: Jean-Marc Lasgouttes Date: Wed Mar 20 17:25:25 2019 +0100

<    5   6   7   8   9   10   11   12   13   14   >