[LyX features/properpaint] Rename more instances of "cursor" to "caret"

2017-08-25 Thread Jean-Marc Lasgouttes
he caret if it is not visible void showCaret(); /// void updateScrollbar(); @@ -109,7 +109,7 @@ struct GuiWorkArea::Private /// CaretWidget * caret_; - /// is the cursor currently displayed + /// is the caret currently displayed bool caret_visible_;

[LyX/master] Fix computation of string width when using a QTextLayout

2017-08-28 Thread Jean-Marc Lasgouttes
commit c874641e95b763a6d4691fb12fba893580f3018a Author: Jean-Marc Lasgouttes Date: Mon Aug 28 12:05:35 2017 +0200 Fix computation of string width when using a QTextLayout It was not a good idea to rely on QTextLine::naturalTextWidth() to compute a string width. The correct

[LyX/2.3.x] Fix computation of string width when using a QTextLayout

2017-08-28 Thread Jean-Marc Lasgouttes
commit 4d845baf0867f15531f10d25b9611d39ac282428 Author: Jean-Marc Lasgouttes Date: Mon Aug 28 12:05:35 2017 +0200 Fix computation of string width when using a QTextLayout It was not a good idea to rely on QTextLine::naturalTextWidth() to compute a string width. The correct

[LyX features/properpaint] Small update to README file.

2017-08-29 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit a21cb2243c13a998797bfe2477d0e10602413ea4 Author: Jean-Marc Lasgouttes Date: Tue Aug 29 12:13:50 2017 +0200 Small update to README file. diff --git a/README b/README

[LyX features/properpaint] Rename more instances of "cursor" to "caret"

2017-08-29 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. discards a21cb2243c13a998797bfe2477d0e10602413ea4 (commit) This update discarded existing revisions and left the branch pointing at a previous point in the repository history. * -- * -- N (093db41c5b357b195ae57701b0bb5cda2f672147) \

[LyX/master] Small update to README

2017-08-29 Thread Jean-Marc Lasgouttes
commit c5b82506042ed831d8ad8a395f3b13b094dcd202 Author: Jean-Marc Lasgouttes Date: Tue Aug 29 12:15:25 2017 +0200 Small update to README --- README | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README b/README index 6cd02bd..8c442fd

[LyX/2.2.x] Small update to README

2017-08-29 Thread Jean-Marc Lasgouttes
commit 6b0509da0cec235b86af73e2ee34b5e2ed7a63e3 Author: Jean-Marc Lasgouttes Date: Tue Aug 29 12:15:25 2017 +0200 Small update to README --- README | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README b/README index 4eb5b62

[LyX/2.2.x] Fix computation of string width when using a QTextLayout

2017-08-29 Thread Jean-Marc Lasgouttes
commit 48904cc5a1bfb1b80182fb36e140c9bb48ffb22d Author: Jean-Marc Lasgouttes Date: Mon Aug 28 12:05:35 2017 +0200 Fix computation of string width when using a QTextLayout It was not a good idea to rely on QTextLine::naturalTextWidth() to compute a string width. The correct

[LyX/master] Fix Lexer::getLongString prefix pruning logic

2017-08-29 Thread Jean-Marc Lasgouttes
commit 48f099d93ab179eef76594ced6b735aa912c03f6 Author: Jean-Marc Lasgouttes Date: Wed Aug 23 12:25:29 2017 +0200 Fix Lexer::getLongString prefix pruning logic This fixes 3 bugs: 1/ only spaces are considered as part of the prefix 2/ leading tabs are removed

[LyX/2.3.x] Fix Lexer::getLongString prefix pruning logic

2017-08-29 Thread Jean-Marc Lasgouttes
commit cc2835392294fb1e82a89b2ec3803f78c9183f18 Author: Jean-Marc Lasgouttes Date: Wed Aug 23 12:25:29 2017 +0200 Fix Lexer::getLongString prefix pruning logic This fixes 3 bugs: 1/ only spaces are considered as part of the prefix 2/ leading tabs are removed

[LyX features/properpaint] Update insets position in cache in more cases

2017-08-31 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 17de8a989da8ec950814e044a6419c6c3fd65d43 Author: Jean-Marc Lasgouttes Date: Wed Aug 30 18:05:16 2017 +0200 Update insets position in cache in more cases This

[LyX/master] When a row is shortened, reset its flushed() attribute.

2017-08-31 Thread Jean-Marc Lasgouttes
commit 59e2c40564f441044d38f2082b8a038cc093c932 Author: Jean-Marc Lasgouttes Date: Thu Aug 31 14:52:30 2017 +0200 When a row is shortened, reset its flushed() attribute. Fixes bug #10699. --- src/TextMetrics.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

[LyX/master] Honor trailing spaces in LabelString and friends

2017-08-31 Thread Jean-Marc Lasgouttes
commit 5c545573507bbf55f78c294188537c6aff959bc0 Author: Jean-Marc Lasgouttes Date: Thu Aug 31 12:03:54 2017 +0200 Honor trailing spaces in LabelString and friends Remove the trimming operation on LabelString, LabelStringAppendix, EndLabelString and LabelCounter. This trimming

[LyX/2.3.x] When a row is shortened, reset its flushed() attribute.

2017-08-31 Thread Jean-Marc Lasgouttes
commit bd88740b065d312c2834701b410222e40009f623 Author: Jean-Marc Lasgouttes Date: Thu Aug 31 14:52:30 2017 +0200 When a row is shortened, reset its flushed() attribute. Fixes bug #10699. (cherry picked from commit 59e2c40564f441044d38f2082b8a038cc093c932) --- src

[LyX/2.3.x] Honor trailing spaces in LabelString and friends

2017-09-02 Thread Jean-Marc Lasgouttes
commit b92ceba9a1b6483eae74877fd84b2bfc114846bf Author: Jean-Marc Lasgouttes Date: Thu Aug 31 12:03:54 2017 +0200 Honor trailing spaces in LabelString and friends Remove the trimming operation on LabelString, LabelStringAppendix, EndLabelString and LabelCounter. This trimming

[LyX/2.2.x] When a row is shortened, reset its flushed() attribute.

2017-09-03 Thread Jean-Marc Lasgouttes
commit 8ff22de938fd47cf126e628cd8b7fa0a482cedba Author: Jean-Marc Lasgouttes Date: Thu Aug 31 14:52:30 2017 +0200 When a row is shortened, reset its flushed() attribute. Fixes bug #10699. (cherry picked from commit 59e2c40564f441044d38f2082b8a038cc093c932) --- src

[LyX/2.2.x] Use the proper buffer when recording undo

2017-09-03 Thread Jean-Marc Lasgouttes
commit 4db40b11afa9ba708d576dd4fa7939c2a0ca320b Author: Jean-Marc Lasgouttes Date: Tue Jul 4 16:34:34 2017 +0200 Use the proper buffer when recording undo The code in InsetLabel::updateReferences code changes reference insets in potentially several buffers. When recording undo

[LyX features/properpaint] Update insets position in cache in more cases

2017-09-05 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 c564d09ffab8529a4883dbd268866d59958622bd Author: Jean-Marc Lasgouttes Date: Wed Aug 30 18:05:16 2017 +0200 U

[LyX features/properpaint] remove LyXRC::use_qimage

2017-09-08 Thread Jean-Marc Lasgouttes
- Log - commit 4f4383cac59f52decba400f2c78e267f7bb162e3 Author: Jean-Marc Lasgouttes Date: Fri Sep 8 16:56:13 2017 +0200 remove LyXRC::use_qimage This is not needed anymore now that we do not need a backup pixmap. Update LyXRC format to 23 and add conversion. diff --git

[LyX/master] Do the actual drawing in the paint event

2017-09-08 Thread Jean-Marc Lasgouttes
commit 24c29908bd68ac36199bf413d9fed078f6f1f224 Author: Jean-Marc Lasgouttes Date: Fri Sep 8 16:55:11 2017 +0200 Do the actual drawing in the paint event Historically, because of two-stage drawing, LyX has been painting on a Pixmap, and this pixmap is copied to screen at paint

[LyX/master] Fix caret painting

2017-09-08 Thread Jean-Marc Lasgouttes
commit e7fdce0b5a8dd2bd1b7dea548248cb8cc815c338 Author: Jean-Marc Lasgouttes Date: Thu Jul 20 23:31:05 2017 +0200 Fix caret painting The trick is to remember in BufferView what has been done at the previous draw, so that the row that contained the caret can be repainted if

[LyX/master] three-stage drawing: add a nodraw stage

2017-09-08 Thread Jean-Marc Lasgouttes
commit efc735901523752a26440b2d3da390d1c787bc56 Author: Jean-Marc Lasgouttes Date: Sun Jul 16 01:25:03 2017 +0200 three-stage drawing: add a nodraw stage Normally the two stages of drawing are 1/ compute metrics of insets/rows/paragraphs/mathrow... 2/ draw the elements and

[LyX/master] Update the painting process documentation

2017-09-08 Thread Jean-Marc Lasgouttes
commit 8edadee1458192f4fc34ffc2a9aaff878b179257 Author: Jean-Marc Lasgouttes Date: Sun Jul 23 12:39:26 2017 +0200 Update the painting process documentation --- development/PAINTING_ANALYSIS | 44 +--- 1 files changed, 14 insertions(+), 30 deletions

[LyX/master] Cleanup and simplify WorkArea code

2017-09-08 Thread Jean-Marc Lasgouttes
commit 1a7e342652fd0aaff44793675b86807a0f511abd Author: Jean-Marc Lasgouttes Date: Sat Jul 22 01:19:45 2017 +0200 Cleanup and simplify WorkArea code Rename cursor to caret to in order to avoid ambiguity. The caret is now the blinking thing only. Remove unused header

[LyX/master] Update insets position in cache in more cases

2017-09-08 Thread Jean-Marc Lasgouttes
commit 3b404b0023e611bfbdb64fa723c5d56d7477fcf7 Author: Jean-Marc Lasgouttes Date: Wed Aug 30 18:05:16 2017 +0200 Update insets position in cache in more cases This patch makes sure that, every time a ParagraphMetrics has its position set, the inset positions for the insets

[LyX/master] Make input methods support great again

2017-09-08 Thread Jean-Marc Lasgouttes
commit 14320e5b9ab9e9acfa7a76f0999ebacc9f0c9b89 Author: Jean-Marc Lasgouttes Date: Sun Jul 23 00:56:27 2017 +0200 Make input methods support great again This unbreaks input methods by splitting the part of the code that does the actual drawing to a separate paintPreeditText

[LyX/master] Remove workaround that is not necessary anymore.

2017-09-08 Thread Jean-Marc Lasgouttes
commit fb655725b729dc164adeb21ea2b15ba95174ef26 Author: Jean-Marc Lasgouttes Date: Sun Jul 23 15:50:35 2017 +0200 Remove workaround that is not necessary anymore. This code was necessary to handle cases where the insets positions were not yet in cache. This cannot happen

[LyX/master] Rename more instances of "cursor" to "caret"

2017-09-08 Thread Jean-Marc Lasgouttes
commit b0737d258903ca293a72447f144776c6e073bdc6 Author: Jean-Marc Lasgouttes Date: Thu Aug 24 17:37:56 2017 +0200 Rename more instances of "cursor" to "caret" Thanks to Pavel for the hint. --- src/BufferView.cpp |2

[LyX/master] remove LyXRC::use_qimage

2017-09-08 Thread Jean-Marc Lasgouttes
commit 4f4383cac59f52decba400f2c78e267f7bb162e3 Author: Jean-Marc Lasgouttes Date: Fri Sep 8 16:56:13 2017 +0200 remove LyXRC::use_qimage This is not needed anymore now that we do not need a backup pixmap. Update LyXRC format to 23 and add conversion. --- lib

[LyX/master] Merge remote-tracking branch 'features/properpaint'

2017-09-08 Thread Jean-Marc Lasgouttes
commit 3d590d3bd71a3522d525ce71220e99bd25b6a648 Merge: 4762698 4f4383c Author: Jean-Marc Lasgouttes Date: Fri Sep 8 17:05:13 2017 +0200 Merge remote-tracking branch 'features/properpaint' Now painting the workarea is done at paint events as should be. Explicit pain

[LyX/master] Update row width when inset is indented

2017-09-11 Thread Jean-Marc Lasgouttes
commit 3f1944a7c97444c6cb5b74a1772ac17f13012902 Author: Jean-Marc Lasgouttes Date: Mon Sep 11 12:40:40 2017 +0200 Update row width when inset is indented Fixes bug #10758 --- src/TextMetrics.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src

[LyX/2.3.x] Update row width when inset is indented

2017-09-11 Thread Jean-Marc Lasgouttes
commit e781628575276d48d71df6ebb44aad56f12d21f4 Author: Jean-Marc Lasgouttes Date: Mon Sep 11 12:40:40 2017 +0200 Update row width when inset is indented Fixes bug #10758 (cherry picked from commit 3f1944a7c97444c6cb5b74a1772ac17f13012902) --- src/TextMetrics.cpp |4

[LyX/master] Update boost to 1.65.1

2017-09-12 Thread Jean-Marc Lasgouttes
commit ed09ccbc3cb52abd94ddccc8dd62f7edd6904bf9 Author: Jean-Marc Lasgouttes Date: Tue Sep 12 11:37:04 2017 +0200 Update boost to 1.65.1 3rdparty/boost/Makefile.am |2 +- 3rdparty/boost/boost/any.hpp | 20 +- 3rdparty/boost/boost

[LyX/master] Remove unused private field from Painter

2017-09-13 Thread Jean-Marc Lasgouttes
commit bef0a9137f318bf596755153f4b624e356318bde Author: Jean-Marc Lasgouttes Date: Wed Sep 13 12:38:33 2017 +0200 Remove unused private field from Painter Clang is good at seeing those, gcc is not. --- src/frontends/Painter.h |4 +--- 1 files changed, 1 insertions(+), 3

[LyX features/properpaint] fixup nullpainter: Remove unused private field from Painter

2017-09-13 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 6a6c9e1bdf2f1dbd31888de87e33b87c34fab556 Author: Jean-Marc Lasgouttes Date: Wed Sep 13 12:38:33 2017 +0200 fixup nullpainter: Remove unused private field from Painter

[LyX/master] Compute metrics when graphics is updated

2017-09-14 Thread Jean-Marc Lasgouttes
commit a31d3dc67dce9655bee9f1b0a2bc2188d7d97453 Author: Jean-Marc Lasgouttes Date: Thu Sep 14 15:50:30 2017 +0200 Compute metrics when graphics is updated Remove the old schedule_redraw_ mechanism that was only useful because of our synchronous drawing code. Now that actual

[LyX features/properpaint] Compute metrics when graphics is updated

2017-09-14 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit bb804333e8a079ddd156bf16802dd55136170510 Author: Jean-Marc Lasgouttes Date: Thu Sep 14 15:50:30 2017 +0200 Compute metrics when graphics is updated Remove

[LyX/master] Remember correctly pixel ratio used for painting

2017-09-18 Thread Jean-Marc Lasgouttes
commit 6532e5104dfad5416817d89a5f91e53c30cdd523 Author: Jean-Marc Lasgouttes Date: Mon Sep 18 10:58:07 2017 +0200 Remember correctly pixel ratio used for painting This avoids endless resize issues on HiDPI systems (e.g. Retina Mac). Rename pixel_ratio_ to

[LyX features/properpaint] Remember correctly pixel ratio used for painting

2017-09-18 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 16ec59337a196a611d921551686aabadd9c5deed Author: Jean-Marc Lasgouttes Date: Mon Sep 18 10:58:07 2017 +0200 Remember correctly pixel ratio used for painting

[LyX/master] Do not presume what the defaults for a new QPainter are

2017-09-18 Thread Jean-Marc Lasgouttes
commit 275d306c73e3e0f60e0742adbcb06cce98c48ee5 Author: Jean-Marc Lasgouttes Date: Mon Sep 18 11:21:18 2017 +0200 Do not presume what the defaults for a new QPainter are --- src/frontends/qt4/GuiPainter.cpp |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[LyX features/properpaint] Do not presume what the defaults for a new QPainter are

2017-09-18 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit f1841f4e1dd5f9c94f8671243a07c3bed3d30126 Author: Jean-Marc Lasgouttes Date: Mon Sep 18 11:21:18 2017 +0200 Do not presume what the defaults for a new QPainter are

[LyX/master] Do not apply mathindent to inline math insets

2017-09-24 Thread Jean-Marc Lasgouttes
commit 040e9d32a6c1f69c444ed6593e67f96829f8052f Author: Jean-Marc Lasgouttes Date: Sun Sep 24 22:37:56 2017 +0200 Do not apply mathindent to inline math insets --- src/mathed/InsetMathHull.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mathed

[LyX/2.3.x] Do not apply mathindent to inline math insets

2017-09-24 Thread Jean-Marc Lasgouttes
commit f2f7ea9edcdafb0e02d91cc2af53185154d41bd8 Author: Jean-Marc Lasgouttes Date: Sun Sep 24 22:37:56 2017 +0200 Do not apply mathindent to inline math insets (cherry picked from commit 040e9d32a6c1f69c444ed6593e67f96829f8052f) --- src/mathed/InsetMathHull.cpp |2 +- 1 files

[LyX/master] Fix bad refresh when changing zoom level

2017-09-27 Thread Jean-Marc Lasgouttes
commit 9df59aac63bbb56d9d5f5ddcccfaa3ebace2f03d Author: Jean-Marc Lasgouttes Date: Wed Sep 27 17:52:06 2017 +0200 Fix bad refresh when changing zoom level Replace the tricky code in LFUN_SCREEN_FONT_UPDATE and replace it with proper use of DispatchResult flags

[LyX/master] Avoid empty space above the top of the document

2017-09-28 Thread Jean-Marc Lasgouttes
commit d6aecbda0f5929ab04805ac6e19cd48f3c4a059b Author: Jean-Marc Lasgouttes Date: Thu Sep 28 13:31:41 2017 +0200 Avoid empty space above the top of the document If the height of the first row of the document has become smaller (for example when it contains an image which size

[LyX/2.3.x] Avoid empty space above the top of the document

2017-09-28 Thread Jean-Marc Lasgouttes
commit cda56c0dc3d5e43b68b464fa1a483d8973d2b692 Author: Jean-Marc Lasgouttes Date: Thu Sep 28 13:31:41 2017 +0200 Avoid empty space above the top of the document If the height of the first row of the document has become smaller (for example when it contains an image which size

[LyX/master] Improve the logic of caret repainting

2017-09-29 Thread Jean-Marc Lasgouttes
commit 764a153c69bb9b46a6e6872ce48e06f5f867cc53 Author: Jean-Marc Lasgouttes Date: Fri Sep 29 10:29:39 2017 +0200 Improve the logic of caret repainting For some reason the existing code only considered the bottom row that contained the cursor. There is no need for that, and

[LyX features/properpaint] Improve the logic of caret repainting

2017-09-29 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 6d7f512a7bb4e7aab57de96c06552b3262d74ec6 Author: Jean-Marc Lasgouttes Date: Fri Sep 29 10:29:39 2017 +0200 Improve the logic of caret repainting For some

[LyX/master] Create new method GuiWorkArea::Private:::updateCaretGeometry

2017-10-02 Thread Jean-Marc Lasgouttes
commit add342d088c1b65343234576a35e567507fb2d49 Author: Jean-Marc Lasgouttes Date: Mon Oct 2 17:07:31 2017 +0200 Create new method GuiWorkArea::Private:::updateCaretGeometry This replaces a showCaret/hideCaret pair and avoids an update. Also remove an update() call in

[LyX features/properpaint] Create new method GuiWorkArea::Private:::updateCaretGeometry

2017-10-04 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 926828a8680ae4881ef3a8b8db7edafa1dd436d0 Author: Jean-Marc Lasgouttes Date: Mon Oct 2 17:07:31 2017 +0200 Create new method GuiWorkArea::Private:::updateCaretGeometry

[LyX/master] autoconf

2017-10-11 Thread Jean-Marc Lasgouttes
commit 0bd6cc30bc30d3ae4315709c23b8aeb4bdccaf74 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 11:20:22 2017 +0200 autoconf --- config/qt4.m4 |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/qt4.m4 b/config/qt4.m4 index 1cf557d..306ffe8 100644 --- a

[LyX/master] Do not forget to set cursor current font when selecting

2017-10-11 Thread Jean-Marc Lasgouttes
commit 88d0390724c60410dd680a2528eab5c91b1252ce Author: Jean-Marc Lasgouttes Date: Wed Oct 11 11:56:09 2017 +0200 Do not forget to set cursor current font when selecting Fix several unreleated cases where the `selecting' code path did not reset cursor font correctly.

[LyX/master] Revert "autoconf"

2017-10-11 Thread Jean-Marc Lasgouttes
commit e8d8f0abf8245ccf91eb2606a215c63627aa5da8 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 12:02:25 2017 +0200 Revert "autoconf" I did not plan to push this This reverts commit 0bd6cc30bc30d3ae4315709c23b8aeb4bdccaf74. --- config/qt4.m4 |7 --- 1 fil

[LyX/master] fix broken comment

2017-10-11 Thread Jean-Marc Lasgouttes
commit 6956cea3235ef27a93569d4de98099c78e4322e2 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 17:33:45 2017 +0200 fix broken comment --- src/mathed/InsetMathNest.cpp |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed

[LyX/master] Some improvements related to Debug::PAINTING

2017-10-11 Thread Jean-Marc Lasgouttes
commit e7122d79268104419f96b30e11d1a1817a2d6a77 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 17:39:02 2017 +0200 Some improvements related to Debug::PAINTING Avoid blinking the cursor when these debug messages are active. This avoids a lot of debug information. --- src

[LyX/2.3.x] Do not forget to set cursor current font when selecting

2017-10-12 Thread Jean-Marc Lasgouttes
commit 80983a35535753992ab1499e2230592063f6ddcb Author: Jean-Marc Lasgouttes Date: Wed Oct 11 11:56:09 2017 +0200 Do not forget to set cursor current font when selecting Fix several unreleated cases where the `selecting' code path did not reset cursor font correctly.

[LyX/master] Allow multiple calls to processUpdateFlags before redraw

2017-10-16 Thread Jean-Marc Lasgouttes
commit c19c54dd5b85726df1b5187616d17d5430028c16 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 18:00:48 2017 +0200 Allow multiple calls to processUpdateFlags before redraw The goal of this commit is to ensure that a processUpdateFlags call that requires no redraw will not

[LyX features/properpaint] Allow multiple calls to processUpdateFlags before redraw

2017-10-16 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit e495d7b954cabe7d44872e53daccee60d639 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 18:00:48 2017 +0200 Allow multiple calls to processUpdateFlags before redraw

[LyX/master] Revert "Allow multiple calls to processUpdateFlags before redraw"

2017-10-17 Thread Jean-Marc Lasgouttes
commit b4294a7b06d1d9436efdde3df6ce4b0732620e9e Author: Jean-Marc Lasgouttes Date: Tue Oct 17 20:10:11 2017 +0200 Revert "Allow multiple calls to processUpdateFlags before redraw" The concept is correct, but it seems a bit too disruptive. This reve

[LyX features/properpaint] Revert "Allow multiple calls to processUpdateFlags before redraw"

2017-10-17 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit d7f0e0606a7d235c19e39fe0bbc36d0e29598ff4 Author: Jean-Marc Lasgouttes Date: Tue Oct 17 20:12:04 2017 +0200 Revert "Allow multiple calls to processUpdateFlags b

[LyX/master] Move some Cursor methods to CursorData

2017-10-25 Thread Jean-Marc Lasgouttes
commit 02028c0b12ba94093e4e77494e7158a58f1631e5 Author: Jean-Marc Lasgouttes Date: Sun Jul 23 18:13:33 2017 +0200 Move some Cursor methods to CursorData Basically, everything that does not depend on a BufferView should move there. Some methods that do not seem to need a

[LyX/master] Fix comment

2017-10-25 Thread Jean-Marc Lasgouttes
commit 785c6d4e05c86fdcf96604d68d252e6591769f0f Author: Jean-Marc Lasgouttes Date: Wed Oct 25 12:16:16 2017 +0200 Fix comment --- src/frontends/WorkArea.h |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/frontends/WorkArea.h b/src/frontends/WorkArea.h

[LyX features/properpaint] Allow multiple calls to processUpdateFlags before redraw

2017-10-25 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 2f05db73f8cc6e124bb72ed6837b4e1d2a191e74 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 18:00:48 2017 +0200 Allow multiple calls to processUpdateFlags before redraw

[LyX/master] Allow multiple calls to processUpdateFlags before redraw

2017-10-25 Thread Jean-Marc Lasgouttes
commit 8d8988de475bf2055f253823e53fd5627be5de78 Author: Jean-Marc Lasgouttes Date: Wed Oct 11 18:00:48 2017 +0200 Allow multiple calls to processUpdateFlags before redraw The goal of this commit is to ensure that a processUpdateFlags call that requires no redraw will not

[LyX/master] Remove unused variables

2017-12-08 Thread Jean-Marc Lasgouttes
commit 0d6a38f3d490dd96d5bb84ecbbd0b107616633fe Author: Jean-Marc Lasgouttes Date: Fri Dec 8 12:16:51 2017 +0100 Remove unused variables --- src/Buffer.cpp |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a8c..558c351

[LyX/master] Implement display of roots more faithfully

2017-12-08 Thread Jean-Marc Lasgouttes
commit 16af6e7c5067fff0873587af30833e0b8006c435 Author: Jean-Marc Lasgouttes Date: Mon Dec 4 10:44:49 2017 +0100 Implement display of roots more faithfully This is a follow-up to 758de957. - unify the metrics and drawing of \sqrt and \root using helper functions

[LyX/master] Fixup 16af6e7c

2017-12-08 Thread Jean-Marc Lasgouttes
commit 6cb6f78ae9050140c75af089350cd70b58e1 Author: Jean-Marc Lasgouttes Date: Mon Dec 4 11:20:13 2017 +0100 Fixup 16af6e7c Avoid an extra pixel above horizontal rule. --- src/mathed/InsetMathRoot.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[LyX/master] Handle properly undo groups in embedded work areas

2017-12-13 Thread Jean-Marc Lasgouttes
commit 8b107f0490e61b4390e925f08d21661ef50d6f49 Author: Jean-Marc Lasgouttes Date: Wed Dec 13 10:38:47 2017 +0100 Handle properly undo groups in embedded work areas When a buffer is in an embedded work area (adv. find&replace), it is not found by BufferList:::exists(),

[LyX/master] Improve UndoGroupHelper and use it more

2017-12-13 Thread Jean-Marc Lasgouttes
commit cd9e42dc3529980257d2b0fe6fd623fd2b99a1e6 Author: Jean-Marc Lasgouttes Date: Wed Dec 13 11:10:49 2017 +0100 Improve UndoGroupHelper and use it more Now the helper class contains logic that checks whether buffer are known before closing them. This avoids potential crashes

[LyX/master] Avoid assignment in if() clause

2017-12-14 Thread Jean-Marc Lasgouttes
commit 4cfa5a9d2a9dd340c0b0228eba4b877ff905d458 Author: Jean-Marc Lasgouttes Date: Thu Dec 14 11:22:05 2017 +0100 Avoid assignment in if() clause The optimization they provide is not worth it IMO. Fixes bugs #10898, #10899, #10940. --- src/insets/InsetBibtex.cpp |8

[LyX/master] Kill MSVC warning

2017-12-14 Thread Jean-Marc Lasgouttes
commit b9b6e4c08379cb924c1cb7be1e4c4cc441c2401e Author: Jean-Marc Lasgouttes Date: Thu Dec 14 13:04:52 2017 +0100 Kill MSVC warning Fixes bug #10900. --- src/insets/InsetGraphicsParams.cpp |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/insets

[LyX/master] Fix MSVC warning

2017-12-14 Thread Jean-Marc Lasgouttes
commit 6936c1b4fa7f4a9e0ec98046431217b6916fed58 Author: Jean-Marc Lasgouttes Date: Thu Dec 14 13:39:37 2017 +0100 Fix MSVC warning Take this occasion to simplify the code. Fixes bug #10402. --- src/insets/InsetInfo.cpp | 12 1 files changed, 4 insertions

[LyX/master] Simplify code in BiblioInfo.cpp

2017-12-14 Thread Jean-Marc Lasgouttes
commit eebea6284d521c1a291de3b3ed483969f882dcd7 Author: Jean-Marc Lasgouttes Date: Thu Dec 14 15:41:54 2017 +0100 Simplify code in BiblioInfo.cpp ... and avoid MSVC warning Fixes bug #10905 --- src/BiblioInfo.cpp | 31 ++- 1 files changed

[LyX/master] Change parameter name

2017-12-14 Thread Jean-Marc Lasgouttes
commit 0f18bb54cc64ce5283df172eb1d6e619b3b7cd7f Author: Jean-Marc Lasgouttes Date: Thu Dec 14 16:00:00 2017 +0100 Change parameter name It was a same as a Row member Fixes bug #10921. --- src/Row.cpp |6 +++--- src/Row.h |2 +- 2 files changed, 4 insertions

[LyX/master] Remove duplicate variable

2017-12-14 Thread Jean-Marc Lasgouttes
commit 8eb736b23b7ddfd8436a05a875611120e03e6ca2 Author: Jean-Marc Lasgouttes Date: Thu Dec 14 16:03:30 2017 +0100 Remove duplicate variable Fixes bug #10922 --- src/RowPainter.cpp |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/RowPainter.cpp b/src

[LyX/master] Use static_assert instead of LATTEST

2017-12-14 Thread Jean-Marc Lasgouttes
commit 4f3734f0242e02fdd08772bfaed48be482467ffb Author: Jean-Marc Lasgouttes Date: Thu Dec 14 16:22:46 2017 +0100 Use static_assert instead of LATTEST Fixes bug #10928 --- src/TextClass.cpp |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src

[LyX/master] Use a backing store on macOS

2017-12-15 Thread Jean-Marc Lasgouttes
commit 2316435f2fd2da28c70e1b251b852d3bf6d8011a Author: Jean-Marc Lasgouttes Date: Sat Nov 25 12:31:11 2017 +0100 Use a backing store on macOS Qt on macOS does not respect the Qt::WA_OpaquePaintEvent attribute and clears the widget backing store at each update. Therefore, we

[LyX features/properpaint] Use a backing store on macOS

2017-12-15 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 3dc723ee10926cecc4372c5f77ff10ac5ad28849 Author: Jean-Marc Lasgouttes Date: Sat Nov 25 12:31:11 2017 +0100 Use a backing store on macOS Qt on macOS does not

[LyX/master] Do not draw inactive math corners when they have mathbg color

2017-12-19 Thread Jean-Marc Lasgouttes
commit 68614e9783382b6267fc9ce32ed45bc2477007dd Author: Jean-Marc Lasgouttes Date: Tue Dec 19 22:32:32 2017 +0100 Do not draw inactive math corners when they have mathbg color By default, inactive math corners are invisible. In practice they are annoying because they are

[LyX/master] Reintroduce the spacing around delimiters

2017-12-20 Thread Jean-Marc Lasgouttes
commit 4cb5cc0c7de7cb5dbaaf14328e5a82e1cfe5a6ca Author: Jean-Marc Lasgouttes Date: Wed Dec 20 11:22:21 2017 +0100 Reintroduce the spacing around delimiters This spacing was wrongly removed at 361bd53b as part of the introduction of proper spacing btween elements, but it only

[LyX/master] tex2lyx: do not keep the Flex prefix for Flex insets names

2017-12-20 Thread Jean-Marc Lasgouttes
commit 40a3a44aa26c5b70dfcf9dad0fc388cbca975ffd Author: Jean-Marc Lasgouttes Date: Wed Dec 20 16:00:39 2017 +0100 tex2lyx: do not keep the Flex prefix for Flex insets names While there is code in LyX that handles this, tex2lyx should respect the format that LyX produces and

[LyX/2.3.x] Handle properly undo groups in embedded work areas

2017-12-23 Thread Jean-Marc Lasgouttes
commit 87d291ee237cd24419ced6237b52518a53a4f474 Author: Jean-Marc Lasgouttes Date: Wed Dec 13 10:38:47 2017 +0100 Handle properly undo groups in embedded work areas When a buffer is in an embedded work area (adv. find&replace), it is not found by BufferList:::exists(),

[LyX/2.2.x] Handle properly undo groups in embedded work areas

2017-12-23 Thread Jean-Marc Lasgouttes
commit 02b248d2708a412ac855b73925a676eb9f0c3b20 Author: Jean-Marc Lasgouttes Date: Wed Dec 13 10:38:47 2017 +0100 Handle properly undo groups in embedded work areas When a buffer is in an embedded work area (adv. find&replace), it is not found by BufferList:::exists(),

[LyX/2.3.x] Reintroduce the spacing around delimiters

2017-12-23 Thread Jean-Marc Lasgouttes
commit 92f320ff4a33053e369ed023b8c559d5d9ed35e7 Author: Jean-Marc Lasgouttes Date: Wed Dec 20 11:22:21 2017 +0100 Reintroduce the spacing around delimiters This spacing was wrongly removed at 361bd53b as part of the introduction of proper spacing between elements, but it only

[LyX/2.3.x] Do not draw inactive math corners when they have mathbg color

2017-12-23 Thread Jean-Marc Lasgouttes
commit 546a6a2a310b12fa0d3692cca10920a938f07f9c Author: Jean-Marc Lasgouttes Date: Tue Dec 19 22:32:32 2017 +0100 Do not draw inactive math corners when they have mathbg color By default, inactive math corners are invisible. In practice they are annoying because they are

[LyX/master] Fix 'make check'

2018-01-01 Thread Jean-Marc Lasgouttes
commit 9428ad56b9127a23af67808844ca4838f93563a5 Author: Jean-Marc Lasgouttes Date: Mon Jan 1 23:54:13 2018 +0100 Fix 'make check' --- src/tests/dummy_functions.cpp |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/tests/dummy_functions.cpp b

[LyX/master] Do not use Application for a 'cancel export' boolean

2018-01-02 Thread Jean-Marc Lasgouttes
commit 39a80005895ca7f2b31872cac4f46b104eb51c11 Author: Jean-Marc Lasgouttes Date: Tue Jan 2 00:23:27 2018 +0100 Do not use Application for a 'cancel export' boolean It is not good for a support function to depend of anything outside of it, especially A

[LyX/master] Remove 'premature optimization' that proved buggy

2018-01-05 Thread Jean-Marc Lasgouttes
commit 76f0a3dd4ee5c7958c6dea79628ef8c2ac2c59bd Author: Jean-Marc Lasgouttes Date: Wed Jan 3 18:28:55 2018 +0100 Remove 'premature optimization' that proved buggy At some time it seemed like a good idea in breakRow() to return early when the row was bound to be empty

[LyX/master] Update buffer when an inset or an INFO inset has bee inserted

2018-01-05 Thread Jean-Marc Lasgouttes
commit 806f40dbd4e861e3def104f26a8b70ed8c3ba386 Author: Jean-Marc Lasgouttes Date: Fri Jan 5 19:29:45 2018 +0100 Update buffer when an inset or an INFO inset has bee inserted This is important for info inset, since if updateBuffer needs to be run in redoParagraph (for the

[LyX/master] Move the inPixels(MetricsBase) help from Length to MetricsBase.

2018-01-05 Thread Jean-Marc Lasgouttes
commit d77b05db80497cb0b5ce6ca1497165d968c234be Author: Jean-Marc Lasgouttes Date: Fri Jan 5 19:59:31 2018 +0100 Move the inPixels(MetricsBase) help from Length to MetricsBase. A basic class like Length should not depend on something from frontend. This change allows

[LyX/2.3.x] Update buffer when an inset or an INFO inset has bee inserted

2018-01-06 Thread Jean-Marc Lasgouttes
commit 572b29b139886b4ae9cb75888e1ce57e1cdcad7c Author: Jean-Marc Lasgouttes Date: Fri Jan 5 19:29:45 2018 +0100 Update buffer when an inset or an INFO inset has bee inserted This is important for info inset, since if updateBuffer needs to be run in redoParagraph (for the

[LyX/master] Remove unused variables

2018-01-06 Thread Jean-Marc Lasgouttes
commit af9f3fe8bd2e448945da6d8c7715ef948a65192e Author: Jean-Marc Lasgouttes Date: Sat Jan 6 15:48:36 2018 +0100 Remove unused variables --- src/frontends/qt4/GuiDocument.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src

[LyX/master] Fix compilation in monolithic mode

2018-01-06 Thread Jean-Marc Lasgouttes
commit 3aa10c8dbaf4813fb30d6e9487a5d50720c7affd Author: Jean-Marc Lasgouttes Date: Sat Jan 6 20:46:06 2018 +0100 Fix compilation in monolithic mode --- src/frontends/qt4/GuiApplication.cpp |1 + src/frontends/qt4/GuiInclude.cpp |2 +- 2 files changed, 2 insertions(+), 1

[LyX features/properpaint] Fix compilation in monolithic mode

2018-01-06 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit fc050565a24ee00dca1cce6fff33e037ee4e4bdc Author: Jean-Marc Lasgouttes Date: Sat Jan 6 20:46:06 2018 +0100 Fix compilation in monolithic mode (cherry picked

[LyX/master] Make #include directories explicit

2018-01-08 Thread Jean-Marc Lasgouttes
commit 586890f09ef6ee20ee7f1ed709119774b86cbe24 Author: Jean-Marc Lasgouttes Date: Mon Jan 8 11:19:15 2018 +0100 Make #include directories explicit --- src/support/lyxtime.h |2 +- src/support/mutex.cpp |2 +- src/support/os.cpp|6 +++--- 3 files changed, 5 insertions

[LyX/master] Looks like these are not needed for tests in support/

2018-01-08 Thread Jean-Marc Lasgouttes
commit 4f21f788b468d62bb435a3f62aa3fc65becc7780 Author: Jean-Marc Lasgouttes Date: Mon Jan 8 11:20:06 2018 +0100 Looks like these are not needed for tests in support/ --- src/support/tests/dummy_functions.cpp | 18 -- 1 files changed, 0 insertions(+), 18 deletions

[LyX/master] Fix ghost caret

2018-01-08 Thread Jean-Marc Lasgouttes
commit 66c677b9463feb0687a8228603f86eddd4e859fd Author: Jean-Marc Lasgouttes Date: Mon Jan 8 11:49:40 2018 +0100 Fix ghost caret This fixes a regression in e64ea357, where a test has been (badly) tightened to avoid that two consecutive rows may be redrawn to get rid of

[LyX features/properpaint] Fix ghost caret

2018-01-08 Thread Jean-Marc Lasgouttes
The branch, properpaint, has been updated. - Log - commit 43dcb3abe060a801728f1ddf426bc32c4530b0e3 Author: Jean-Marc Lasgouttes Date: Mon Jan 8 11:49:40 2018 +0100 Fix ghost caret This fixes a regression in e64ea357

[LyX/master] Simplify code using range-based for loops

2018-01-08 Thread Jean-Marc Lasgouttes
commit 1de6d3f3f027919c8fa44bc08f3edd517a1874cb Author: Jean-Marc Lasgouttes Date: Mon Jan 8 15:15:29 2018 +0100 Simplify code using range-based for loops --- src/BufferView.cpp | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src

[LyX/master] Fixup 27eb415d: do not define mymkdir() when it is not used.

2018-01-12 Thread Jean-Marc Lasgouttes
commit 706c9f2aa50558ca0acffb392f85cd278a8a7adc Author: Jean-Marc Lasgouttes Date: Fri Jan 12 12:22:28 2018 +0100 Fixup 27eb415d: do not define mymkdir() when it is not used. Pleases coverity. --- src/support/FileName.cpp |5 ++--- 1 files changed, 2 insertions(+), 3

<    14   15   16   17   18   19   20   21   22   23   >