[LyX/2.2.x] Fix horizontal scrolling in full-width collapsable insets

2016-06-03 Thread Jean-Marc Lasgouttes
commit 7850e77bd912e2ffb5db52344f671f74ec004bcf Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 22 12:11:00 2016 +0200 Fix horizontal scrolling in full-width collapsable insets While a one paragraph large collapsable inset (containing for example a tabular)

[LyX/master] Fix right_boundary properly after a row is shortened

2016-06-09 Thread Jean-Marc Lasgouttes
commit 5e5440f2f3c11e26084e541d45213fa62e88db99 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Jun 6 14:01:02 2016 +0200 Fix right_boundary properly after a row is shortened Instead of resetting it to false, do a proper test to see whether there is a sep

[LyX/master] Initialize some GuiTabular members in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit c056062d59d9118d57b296710abf90b0923b3e14 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:38:32 2016 +0200 Initialize some GuiTabular members in constructor Found by Coverity. diff --git a/src/frontends/qt4/GuiTabular.cpp b/src/fronten

[LyX/master] Initialize GuiSendto::format_ in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit e3d74ee935c8433b9e25df0e2fde762fc664f9a1 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:44:56 2016 +0200 Initialize GuiSendto::format_ in constructor Found by Coverity. diff --git a/src/frontends/qt4/GuiSendto.cpp b/src/frontends/qt4/GuiSend

[LyX/master] Annotate source code to please coverity

2016-06-09 Thread Jean-Marc Lasgouttes
commit 731dbddd1120ede02e14ec90d3d93207f76f9aec Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 15:51:07 2016 +0200 Annotate source code to please coverity This code is signalled as a copy and paste error, but it is a false positive. Acc

[LyX/master] Always initialize InsetQuote language in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit a0c2328fd641cd0736ec72b36a2ee13550b614d7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:42:24 2016 +0200 Always initialize InsetQuote language in constructor Found by Coverity diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp

[LyX/master] Initialize InsetExteralParams::preview_mode in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 102e6340e522747a04c8b3f42834ff21ba6b225b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:51:07 2016 +0200 Initialize InsetExteralParams::preview_mode in constructor The value PREVIEW_OFF is the same default as for external::Template.

[LyX/master] Initialize FindAndReplaceOptions in default constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 76f45b351d396de41a1d6653c584c9e3d4e53417 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:05:24 2016 +0200 Initialize FindAndReplaceOptions in default constructor Found by coverity diff --git a/src/lyxfind.h b/src/lyxfind.h index 94efba8..781411c

[LyX/master] Initialize Parse::theCatCode_ in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 0f5c34b8abcaf5bf4ae2df665b2f5aed40229502 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:11:41 2016 +0200 Initialize Parse::theCatCode_ in constructor Normally, it is done before tokenizing, but it does not hurt to do it even before.

[LyX/master] Initialize GuiDocument:biblioChanged_ in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 725c66d20c4e2482b135cd38fe8a657d854489ab Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:38:30 2016 +0200 Initialize GuiDocument:biblioChanged_ in constructor Found by Coverity diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/fronten

[LyX/master] Initialize correctly GuiErrorList::from_master_ in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit bad511f3fe04aff4ff37b12464aed88377f52634 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:58:13 2016 +0200 Initialize correctly GuiErrorList::from_master_ in constructor Found by Coverity diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/fro

[LyX/master] Initialize properly InsetTabular members in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit ab40fe6f054487601074c81828f0dbf069b813ea Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:23:27 2016 +0200 Initialize properly InsetTabular members in constructor Found by Coverity diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabul

[LyX/master] Initialize bool member of Package in default constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 7800c057884f6a950bb21bce351968f50679f18c Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:26:55 2016 +0200 Initialize bool member of Package in default constructor Found by Coverity diff --git a/src/support/Package.h b/src/support/Package.h index c

[LyX/master] Initialize correctly SystemcallPrivate in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 664fca556669b3dc9904b628b88d9fc01aff495d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 17:34:14 2016 +0200 Initialize correctly SystemcallPrivate in constructor It seems that Error is the best possibility when nothing has been done yet.

[LyX/master] Allow to disable std::regex manually with autoconf

2016-06-10 Thread Jean-Marc Lasgouttes
commit 6f585055d918740c958b002246a7f3725d20a91f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 10 11:58:11 2016 +0200 Allow to disable std::regex manually with autoconf Update INSTALL and remove mention of --disable-cxx11. diff --git a/INSTALL b/INSTALL

[LyX/master] Please Coverity (code should be equivalent)

2016-06-09 Thread Jean-Marc Lasgouttes
commit 8cd80803220e02f7a9148f11b99f4f3aeb0d3f38 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:02:39 2016 +0200 Please Coverity (code should be equivalent) The parameter passed to allowDisplayMath will need to be copied, so it made sense t

[LyX/master] Initialize LyXModule::available_ in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 4f795bd3099c9d0133e1bc0d9d2956cc09462f8e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:25:02 2016 +0200 Initialize LyXModule::available_ in constructor Found by Coverity. diff --git a/src/ModuleList.cpp b/src/ModuleList.cpp index d442d20..8

[LyX/master] Initialize ScopeBuffer::buffer member in constructor

2016-06-09 Thread Jean-Marc Lasgouttes
commit 020a890f423a37703124a0c3f48a037b27b56faa Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:34:25 2016 +0200 Initialize ScopeBuffer::buffer member in constructor Found by Coverity. diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 084b94c..9b92d8a

[LyX/master] Initialize all MathMacroTemplate members in constructors

2016-06-09 Thread Jean-Marc Lasgouttes
commit af6a164e3c27452e59a9c45c69a570e8dd086271 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:19:31 2016 +0200 Initialize all MathMacroTemplate members in constructors Found by coverity. diff --git a/src/mathed/MathMacroTemplate.cpp b/src/

[LyX/master] Take inset dimension into account in row signature

2016-06-03 Thread Jean-Marc Lasgouttes
commit 508518ad95a7fd7581bd4affd389dbe7bd6d09f1 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 3 11:21:09 2016 +0200 Take inset dimension into account in row signature In some cases, the insets may change height or width without changing the other a

[LyX/master] Cleanup Painter text() API

2016-05-30 Thread Jean-Marc Lasgouttes
commit 598f7e4a45dc10232a42db34e5ca887615c5306f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Mar 20 20:02:05 2016 +0100 Cleanup Painter text() API * remove optional arguments to the helpers that use a FontInfo * add a textwidth argument to the text() m

[LyX/master] Simplify redoParagraph by merging duplicate code

2016-05-30 Thread Jean-Marc Lasgouttes
commit 17516267769abde8c02ae44bd838e3fce373d9a4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 5 23:11:45 2016 +0100 Simplify redoParagraph by merging duplicate code Let breakRow return a boolean indicating whether an additional row is required (after a n

[LyX/master] Make the non-drawing cases faster in TextMetrics::drawParagraph

2016-05-30 Thread Jean-Marc Lasgouttes
commit fc73ebc16c4f0aca76360415a94eca57f283e44e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 16:07:35 2016 +0100 Make the non-drawing cases faster in TextMetrics::drawParagraph There are two main cases: * when drawing is disabled from the star

[LyX/master] Do not require an extra pit parameter when a row is available

2016-05-30 Thread Jean-Marc Lasgouttes
commit e39e4cf96b23997c065a890c015138eb93a1d4fd Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 18 09:39:47 2016 +0200 Do not require an extra pit parameter when a row is available Now that Row has a pit() member, it is possible to use it instead of p

[LyX/master] RowPainter const cleanup

2016-05-30 Thread Jean-Marc Lasgouttes
commit 4c19c5149df496ea327582f0934506d7e3dc6ef9 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue May 17 15:00:09 2016 +0200 RowPainter const cleanup Change the various paint* helpers to take a single row element as argument. Do not update x_ in the various

[LyX/master] Make the different Painter::text void methods

2016-05-30 Thread Jean-Marc Lasgouttes
commit 333f6fcf07b35f240bcc1190dd21b0dc068a9129 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 19 17:52:07 2016 +0100 Make the different Painter::text void methods The textwidth value that was returned is not used anymore. Now in some cases we can

[LyX/master] Rewrite setRowHeight using row information

2016-05-30 Thread Jean-Marc Lasgouttes
commit ac759b4368e2a3477c8ef81ebf749a68280ef3d8 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Mar 6 16:22:53 2016 +0100 Rewrite setRowHeight using row information The initial values for maxasc and maxdes (renamed from maxdesc) is obtained as a maximum of max a

[LyX/master] Move some horizontal scrolling code from TextMetrics to BufferView

2016-05-30 Thread Jean-Marc Lasgouttes
commit 96fee0ed7acdd9d757d59b126f07631176e2d96f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 16:05:06 2016 +0100 Move some horizontal scrolling code from TextMetrics to BufferView It is better to have all the code in the same place, and it will avoi

[LyX/master] Do not use the return value of Painter::text for logos

2016-05-30 Thread Jean-Marc Lasgouttes
commit 51b1cfab721ea6d7c9f43853de987ad6f0157ea8 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 19 17:26:25 2016 +0100 Do not use the return value of Painter::text for logos This will allow to get rid of this return value (and avoid computing it). diff --git

[LyX/master] Only add inset postion to cache in paintInset

2016-05-30 Thread Jean-Marc Lasgouttes
commit 77ef48d093d08ef3491e4f00a994f9709b41ccf2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 14:34:55 2016 +0100 Only add inset postion to cache in paintInset It was also added in paintText and paintOnlyInsets. diff --git a/src/RowPainter.cpp

[LyX/master] Update PAINTING_ANALYSIS and add a new task

2016-05-30 Thread Jean-Marc Lasgouttes
commit 095c390fe2d7c983ccb0228d73c09b8da58bc206 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 11 14:16:08 2016 +0200 Update PAINTING_ANALYSIS and add a new task diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_ANALYSIS index acb033d..78719f5

[LyX/master] Set vertical margins in redoParagraph, not setRowHeight

2016-05-30 Thread Jean-Marc Lasgouttes
commit 656b7f5ab7de9d96a0ec3379dc47fd138b1caa4f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 8 16:34:46 2016 +0200 Set vertical margins in redoParagraph, not setRowHeight It is actually easier to set the 20 pixels margin in redoParagraph,

[LyX/master] Update PAINTING_ANALYSIS

2016-05-30 Thread Jean-Marc Lasgouttes
commit 78eaf8333bacec8d735eae06c0745163d06a5122 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 5 00:09:34 2016 +0100 Update PAINTING_ANALYSIS Some things were wrong, and some new ideas are added (some are done in this branch already). diff --git a/devel

[LyX/master] Update PAINTING_ANALYSIS

2016-05-30 Thread Jean-Marc Lasgouttes
commit 47c0b3cc052ece15dea5289b683bc57bb9cfc01a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon May 30 14:54:20 2016 +0200 Update PAINTING_ANALYSIS Remove all the tasks that have been performed. diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_AN

[LyX/master] Split TextMetrics::setRowHeight in three parts

2016-05-30 Thread Jean-Marc Lasgouttes
commit 03117182154941a7d6fe73c3f86fc52553fafecd Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri May 20 17:14:54 2016 +0200 Split TextMetrics::setRowHeight in three parts The new functions parBottomSpaging and parTopSapcing return below/above each par

[LyX/2.2.x] Allow automatic text direction in Painter::text()

2016-06-01 Thread Jean-Marc Lasgouttes
commit 7855c0c1fc98b154768d3014883873387bd64c95 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue May 31 14:49:13 2016 +0200 Allow automatic text direction in Painter::text() It is wrong to assume that direction is left-to-right when no indication exist.

[LyX/2.2.2-staging] Remove extra spacing around InsetCommand buttons

2016-06-01 Thread Jean-Marc Lasgouttes
commit f97f849e5cdeae8f960207fab760eb66fbbfde42 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon May 23 16:16:05 2016 +0200 Remove extra spacing around InsetCommand buttons There is already a spacing of 2 pixels on each side of a button (e.g. collapsed

[LyX/2.2.2-staging] Fix drawing of buttonText (enforce same left/right spacing)

2016-06-01 Thread Jean-Marc Lasgouttes
commit 40f0659ec0cb0416ab94eb700f37f1b9a65d6212 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon May 23 15:24:13 2016 +0200 Fix drawing of buttonText (enforce same left/right spacing) The computation of the width of the button was wrong. If <-

[LyX/master] Allow breaking a row element at a leading space

2016-01-19 Thread Jean-Marc Lasgouttes
commit 7137826896beed3590f8dce6e6b7ce3c422ceea2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Jan 18 15:32:07 2016 +0100 Allow breaking a row element at a leading space When an inset is separated from the next strng by a space, it is reasonable to be able to

[LyX/2.1.x] Do not record undo in the tabularFeatures helper

2016-02-09 Thread Jean-Marc Lasgouttes
commit 942b62ac0fc00566f3b2c33e400efd3707497def Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Feb 9 16:37:50 2016 +0100 Do not record undo in the tabularFeatures helper Since the low-level version of tabular features is only called by the high-level one, i

[LyX/master] Do not record undo in the tabularFeatures helper

2016-02-09 Thread Jean-Marc Lasgouttes
commit a3b19c60a7440794933af1137ea3e538c4ffbff4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 8 18:19:24 2016 +0100 Do not record undo in the tabularFeatures helper Since the low-level version of tabular features is only called by the high-level one, i

[LyX/2.1.x] Get rid of use_preview_ in various insets

2016-02-09 Thread Jean-Marc Lasgouttes
commit b1323be32cac3289c33920ce001d935e43ad1b0e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Feb 3 14:50:00 2016 +0100 Get rid of use_preview_ in various insets This concerns InsetPreview, InsetIPA and InsetMathHull. Caching such a value is bad when o

[LyX/master] Get rid of use_preview_ in various insets

2016-02-09 Thread Jean-Marc Lasgouttes
commit 28040119576f3914a9e233bd064bf09731427046 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Feb 3 14:50:00 2016 +0100 Get rid of use_preview_ in various insets This concerns InsetPreview, InsetIPA and InsetMathHull. Caching such a value is bad when o

[LyX/master] Avoid making tabular too large when using a caption in longtable mode

2016-01-29 Thread Jean-Marc Lasgouttes
commit 8d091cfe7801230b3d91622559ec5451ea473605 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jan 28 14:27:05 2016 +0100 Avoid making tabular too large when using a caption in longtable mode This is a fixup to commit cdb9f043, which fixed bug

[LyX/master] When selecting whole row, reset properly the pit()

2016-02-03 Thread Jean-Marc Lasgouttes
commit 169cf7c24dd701650f631c3478f47dd1f6a185a7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 1 16:56:59 2016 +0100 When selecting whole row, reset properly the pit() Since different cells in a row can have different number of paragraph, take care of s

[LyX/2.1.x] Fix compilation with boost 1.60

2016-02-03 Thread Jean-Marc Lasgouttes
commit ef81af703737c6ccdaac8d098b56c2548133363d Author: Georg Baum Date: Sat May 16 00:05:23 2015 +0200 Fix compilation with boost 1.60 Newer boost versions use complicated type traits for boost::next and boost::prior, which do not work with the RandomAccessList

[LyX/2.1.x] When selecting whole row, reset properly the pit()

2016-02-03 Thread Jean-Marc Lasgouttes
commit ba3269fd8f9e32647bc314969ee344ae56cc4cd3 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 1 16:56:59 2016 +0100 When selecting whole row, reset properly the pit() Since different cells in a row can have different number of paragraph, take care of s

[LyX/master] Allow breaking a row element at a leading/trailing space

2016-02-03 Thread Jean-Marc Lasgouttes
commit 31471496fd53b20b684173da56ba59d0da7f90fc Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 19 12:02:43 2016 +0100 Allow breaking a row element at a leading/trailing space When an inset is separated from the adjacent string by a space, it is reas

[LyX/master] Do not merge consecutive hyphens in LyX-Code

2016-02-26 Thread Jean-Marc Lasgouttes
commit b01d7b2262baaebb26713f79e95edc61103fab73 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Feb 25 15:00:13 2016 +0100 Do not merge consecutive hyphens in LyX-Code The existing code already avoids merging with typewriter font, but it does not work with Ly

[LyX/master] Do not add -std=c++11 to CPPFLAGS (because objc does not like it)

2016-02-23 Thread Jean-Marc Lasgouttes
commit 3c2d3caf278bf8b0c708845aec1ec8f00424392e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Feb 16 15:31:08 2016 +0100 Do not add -std=c++11 to CPPFLAGS (because objc does not like it) Since at least gcc 4.6 requires it, -std=c++11 has been passed to CP

[LyX/master] typo

2016-01-20 Thread Jean-Marc Lasgouttes
commit 76eebf57071b977cbc9c8280f28fadc2206d18ff Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jan 20 17:40:47 2016 +0100 typo diff --git a/src/Language.h b/src/Language.h index 2a9ebb3..ed1bd87 100644 --- a/src/Language.h +++ b/src/Language.h @@ -81,7 +81,7 @@

[LyX/master] Update all paragraphs layouts when undoing bufferparams

2016-01-20 Thread Jean-Marc Lasgouttes
commit 82b6dc8aa9c8f5f09d1b6643afd959d86bc4afa3 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 19 16:31:35 2016 +0100 Update all paragraphs layouts when undoing bufferparams When undo restores a previous BufferParams instance, it should also upda

[LyX/master] Fix dist target when configured with monolithic build.

2016-03-10 Thread Jean-Marc Lasgouttes
commit 31eba79b09006fb2f8a351500f6005a56a7973e0 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Mar 9 10:52:16 2016 +0100 Fix dist target when configured with monolithic build. diff --git a/src/frontends/qt4/Makefile.am b/src/frontends/qt4/Makefile.am index 6a46c5e..1

[LyX/master] Reset right_boundary row property when row is shortened

2016-03-10 Thread Jean-Marc Lasgouttes
commit 5f9053d6d34188d64803e1c30255a7f1a6901373 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Mar 7 13:46:13 2016 +0100 Reset right_boundary row property when row is shortened Fixes bug #10003. diff --git a/src/Row.cpp b/src/Row.cpp index 6e51fb1..8af6fa9

[LyX/master] In mathed, only select current cell on double-click

2016-03-16 Thread Jean-Marc Lasgouttes
commit be7e89a29b451796030839150495dd12711d7914 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Mar 14 15:14:57 2016 +0100 In mathed, only select current cell on double-click Keep the behavior of split selection with triple click. Fixes part of

[LyX/master] When using pixmap cache, add word spacing to signature

2016-03-12 Thread Jean-Marc Lasgouttes
commit 8d088df4df895fe7ede0a9fb5f79de7f8194ae37 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 11 10:08:15 2016 +0100 When using pixmap cache, add word spacing to signature Fixes bug #9971. diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/fronten

[LyX/master] Do not set cursor to the right of newline with mouse

2016-03-12 Thread Jean-Marc Lasgouttes
commit 3b6919217b86a4177a0997f4c92cbc59b293f07b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Mar 6 15:29:25 2016 +0100 Do not set cursor to the right of newline with mouse When a row is broken by for example a display math inset, it is possible to put the

[LyX/master] Fix Cursor::inCoordCache: the root inset is never in the cache

2016-03-11 Thread Jean-Marc Lasgouttes
commit e8e97d67d902cbea41aa6425316ece5c2c3b7dc4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 11 15:13:05 2016 +0100 Fix Cursor::inCoordCache: the root inset is never in the cache Fixes bug #10007. diff --git a/src/Cursor.cpp b/src/Cursor.cpp index e

[LyX features/betterpaint] Revert "Use new display() values to remove some inset hardcoding."

2016-04-08 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been updated. - Log - commit 5c78d680835a6f331c2e1ca954d451aee61f4a29 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 8 16:25:34 2016 +0200 Revert "Use new displ

[LyX features/betterbreak] Use new display() values to remove some inset hardcoding.

2016-04-08 Thread Jean-Marc Lasgouttes
The branch, betterbreak, has been created. at 9b9b4c6c86bd0c7a49299f9b667cf8069f37b08d (commit) - Log - --- hooks/post-receive -- Repository for new

[LyX features/betterpaint] Set vertical margins in redoParagraph, not setRowHeight

2016-04-11 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been updated. - Log - commit d57a233e1b194d0f8fb5e2f8942f1cf737e1711a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 8 16:34:46 2016 +0200 Set vertical margins in redoPar

[LyX/master] When handling mouse events, make the undo group a bit larger

2016-03-19 Thread Jean-Marc Lasgouttes
commit 98883304e2d5f68f5be8124423295aecb43e3463 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Mar 16 10:27:32 2016 +0100 When handling mouse events, make the undo group a bit larger notifyCursorLeave can delete empty insets in mathed. Fixes bug #10022.

[LyX features/betterpaint] Cleanup Painter text() API

2016-03-22 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been created. at 62ac77bfa885c25af226659351da03722f15922f (commit) - Log - commit 62ac77bfa885c25af226659351da03722f15922f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Mar

[LyX/master] Make thin lines exactly 1 pixel wide

2016-03-25 Thread Jean-Marc Lasgouttes
commit ecd7dee5eab9ac8d57433b2be6912941a807f93b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 19 15:48:44 2016 +0100 Make thin lines exactly 1 pixel wide The setting of 0 (minimal possible width) was too thin for Mac Retina displays. Fixes bug

[LyX features/betterpaint] Use new display() values to remove some inset hardcoding.

2016-03-25 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been updated. - Log - commit 9b9b4c6c86bd0c7a49299f9b667cf8069f37b08d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Mar 22 16:53:25 2016 +0100 Use new display() values to remov

[LyX/master] Fix some display bugs related to end of paragraph markers

2016-03-25 Thread Jean-Marc Lasgouttes
commit ba7e2113f393c90776113ece5e7acad456f8e07c Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 25 10:16:33 2016 +0100 Fix some display bugs related to end of paragraph markers There are two regressions that are fixed here: * empty rows at t

[LyX/master] Do not assert when cursor is deeper than anchor

2016-03-22 Thread Jean-Marc Lasgouttes
commit 0aaa930a5c1d400e69082eb60ccac47cc88f9859 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 18 18:03:22 2016 +0100 Do not assert when cursor is deeper than anchor This works around bug #9917 and might give us an occasion of obtaining a recipe for repro

[LyX features/betterpaint] Fixup "Rewrite setRowHeight using row information"

2016-03-23 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been updated. - Log - commit 8a8cbfae6bf723ff1399e6ed777dec70a1cf3459 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Mar 23 19:07:23 2016 +0100 Fixup "Rewrite setRowHeigh

[LyX/master] Better handling of different int sizes when computing row crc

2016-03-03 Thread Jean-Marc Lasgouttes
commit 7d163d4e78e9878b42a36018862a25b211c1a41a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 13:06:23 2016 +0100 Better handling of different int sizes when computing row crc diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp index ad217cf..5

[LyX/master] Avoid endless loop when the window is too narrow

2016-03-03 Thread Jean-Marc Lasgouttes
commit 8009edd3d4f3deee5ed8721113bbf31abe9e0aa6 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Mar 2 23:59:40 2016 +0100 Avoid endless loop when the window is too narrow * breakRow: remove wrong condition that would silently eat the contents of the par

[LyX/master] Revert "Better handling of different int sizes when computing row crc"

2016-03-03 Thread Jean-Marc Lasgouttes
commit b87946c11d677ec0cc0135380e89c0636e073d6b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 4 00:14:56 2016 +0100 Revert "Better handling of different int sizes when computing row crc" This reverts commit 7d163d4e78e9878b42a36018862a25b211c1a41a

[LyX/master] Better handling of different int sizes when computing row crc

2016-03-05 Thread Jean-Marc Lasgouttes
commit ffc693c87ff17d8826befba9db7106cfc7bda900 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 13:06:23 2016 +0100 Better handling of different int sizes when computing row crc diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp index ad217cf..5

[LyX/master] Set margins correctly for empty rows

2016-03-05 Thread Jean-Marc Lasgouttes
commit b4d85944a663821483de06b0b2eeae74973fa02a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Mar 5 13:50:28 2016 +0100 Set margins correctly for empty rows Calling breakRow ensures that everything is set correctly. diff --git a/src/TextMetrics.cpp

[LyX features/trivial] Rename badly named variable

2016-04-05 Thread Jean-Marc Lasgouttes
The branch, trivial, has been updated. - Log - commit c095f92a952be08dee88d1ab0cddd105443c250f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Apr 5 14:27:30 2016 +0200 Rename badly named variable diff

[LyX/master] Rename Caption:LongTableNoNumber to Caption:Unnumbered

2016-03-30 Thread Jean-Marc Lasgouttes
commit fd1ee3b424786db6428bd9e39cad9a79071f9482 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Mar 25 19:22:57 2016 +0100 Rename Caption:LongTableNoNumber to Caption:Unnumbered The term LongTable has been deprecated and moreover the renaming makes the interface

[LyX features/betterpaint] Cleanup Painter text() API

2016-03-22 Thread Jean-Marc Lasgouttes
we assume that you'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 cd64dc2270ebe12b4dd3a4efafb20ec835f5e177 Author: Jean-Marc

[LyX/2.3-staging] Fix horizontal scrolling in full-width collapsable insets

2016-04-22 Thread Jean-Marc Lasgouttes
commit 8c7ace4b951d3c44c0efe57e53b142b8391378cf Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 22 12:11:00 2016 +0200 Fix horizontal scrolling in full-width collapsable insets While a one paragraph large collapsable inset (containing for example a tabular)

[LyX/2.3-staging] Fix cursor position after redo

2016-04-28 Thread Jean-Marc Lasgouttes
commit 0036762f30def16ab8b2216f721f9e552893bc85 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Apr 27 21:16:34 2016 +0200 Fix cursor position after redo When document settings are modified, a command inset-forall Branch inset-toggle asign is run t

[LyX/master] Resources.cpp is a built source, it should not be in SOURCEFILES

2016-04-27 Thread Jean-Marc Lasgouttes
commit ff17b366a05ff2c9e96b332917e4400de3481e7e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Apr 15 16:16:07 2016 +0200 Resources.cpp is a built source, it should not be in SOURCEFILES We want to avoid that Resources.cpp be distributed in the tar file. diff

[LyX/2.2.2-staging] Fix cursor position after redo

2016-04-29 Thread Jean-Marc Lasgouttes
commit fe5e117038788c7eeca8b10562eff108c26af4b0 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Apr 27 21:16:34 2016 +0200 Fix cursor position after redo When document settings are modified, a command inset-forall Branch inset-toggle asign is run t

[LyX/2.3-staging] Do not use of boost::tokenizer

2016-05-19 Thread Jean-Marc Lasgouttes
commit 6fffbbcf9d041301136b46980cf13fd0227ea360 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu May 19 15:28:39 2016 +0200 Do not use of boost::tokenizer It is easier to use instead getVectorFromString for the use we have of this tokenizer. The two

[LyX features/betterpaint] RowPainter const cleanup

2016-05-18 Thread Jean-Marc Lasgouttes
The branch, betterpaint, has been updated. - Log - commit c2575265a75fef6a5078e78bfe0fa88eaf7aa8bd Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue May 17 15:00:09 2016 +0200 RowPainter const c

[LyX features/betterpaint] RowPainter const cleanup

2016-05-18 Thread Jean-Marc Lasgouttes
branch from the common base, B. - Log - commit 65a068109cf8773aa202fcca930ed0d580eb5275 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue May 17 15:00:09 2016 +0200 RowPainter const cleanup Change the v

[LyX/2.3-staging] Cleanup handling of LFUN_LAYOUT in getStatus

2016-05-20 Thread Jean-Marc Lasgouttes
commit 90696d9a963667bf086cee1f814e0e67d9455c0d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu May 12 14:10:30 2016 +0200 Cleanup handling of LFUN_LAYOUT in getStatus The way it works is: * the inset defines forcePlainLayout() correctly * Text::getStatu

[LyX/2.3-staging] Remove unused bruteFind* functions

2016-05-20 Thread Jean-Marc Lasgouttes
commit e580d9733a59725fac94e7ad3814d5d8d415f24e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:48:11 2016 +0100 Remove unused bruteFind* functions And rename bruteFind2 to bruteFind. diff --git a/src/Cursor.cpp b/src/Cursor.cpp index a0a200f..6733aae

[LyX/2.3-staging] Rename badly named variable

2016-05-20 Thread Jean-Marc Lasgouttes
commit 8d1901c0d8aa97220d49bb5d7b0fe7b154c666f0 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Apr 5 14:27:30 2016 +0200 Rename badly named variable diff --git a/src/Text.cpp b/src/Text.cpp index d81dd86..c003350 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -907,11 +

[LyX/2.3-staging] Remove unused CursorData::logicalpos_

2016-05-20 Thread Jean-Marc Lasgouttes
commit a88b31c85191020c7bc73955a1f50321c39610d6 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:44:00 2016 +0100 Remove unused CursorData::logicalpos_ This was introduced in 41ecabf5, probably by mistake. diff --git a/src/Cursor.cpp b/src/Cursor.cpp

[LyX/2.3-staging] Rename Cursor::setSelection(bool) to selection(bool)

2016-05-20 Thread Jean-Marc Lasgouttes
commit bc184526459a8095d46021474566dd7564d98133 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 17:36:29 2016 +0100 Rename Cursor::setSelection(bool) to selection(bool) The old name would be confusing wrt setSelection(), which does additional

[LyX/2.3-staging] Cleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus

2016-05-20 Thread Jean-Marc Lasgouttes
commit cfb41a57c28389e939d663044525694ec90005a5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu May 12 17:31:47 2016 +0200 Cleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus The way it works is: * the inset defines allowParagraphCustomization() cor

[LyX/2.3-staging] Cleanup bruteFind.

2016-05-20 Thread Jean-Marc Lasgouttes
commit 55ca09a6a261ec88de2c31c5c05f40c79b4fa4c5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:56:00 2016 +0100 Cleanup bruteFind. diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 6733aae..b4ca8e0 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -73,25

[LyX/2.3-staging] Move one Text::setCursor instance to CursorSlice

2016-05-20 Thread Jean-Marc Lasgouttes
commit 0eea7074db0bd8a67c993e24f96188829fcedd27 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 13:47:23 2016 +0100 Move one Text::setCursor instance to CursorSlice This method did access more CursorSlice than Text. It is only a setter for Curso

[LyX/2.3-staging] Avoid incorrect "Autocorrect Off" message

2016-05-20 Thread Jean-Marc Lasgouttes
commit 13c87041497743c56d590e9f54714168455d59b4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 17:21:26 2016 +0100 Avoid incorrect "Autocorrect Off" message diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 493f529..9d90c19

[LyX/2.3-staging] Directly pass a Row::Element to RowPainter::paintInset

2016-05-20 Thread Jean-Marc Lasgouttes
commit 49d5279660b087ccc8746f0073465666becd077b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:42:35 2016 +0100 Directly pass a Row::Element to RowPainter::paintInset diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 8c62926..2766642 100644 ---

[LyX/2.3-staging] Remove unused TextMetrics::maxWidth()

2016-05-20 Thread Jean-Marc Lasgouttes
commit 867866a8b1fd5adc4caaffcc4e42198aad7644ec Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:34:33 2016 +0100 Remove unused TextMetrics::maxWidth() diff --git a/src/TextMetrics.h b/src/TextMetrics.h index 507213a..eef00ff 100644 --- a/src/TextMetrics.h +++

[LyX/2.3-staging] TextMetrics: Use shorter names for font metrics

2016-05-20 Thread Jean-Marc Lasgouttes
commit e96fdffc210d39aeca5329d616d6a05e387a6bfe Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 17:01:01 2016 +0100 TextMetrics: Use shorter names for font metrics This keeps code easier to read. diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp

[LyX/2.3-staging] Variables of type pit_type should be named pit, not par

2016-05-20 Thread Jean-Marc Lasgouttes
commit bf943a6d4d7bf5204bc3b14021cae7b5e9df85dc Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 13:29:06 2016 +0100 Variables of type pit_type should be named pit, not par It is easier to use always the same conventions for naming. diff --git

[LyX/2.3-staging] Remove variables set but not used

2016-05-20 Thread Jean-Marc Lasgouttes
commit 02d93ccba52ad4fa84e0fdc04991099bf8af8a22 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Feb 29 14:27:51 2016 +0100 Remove variables set but not used This was found by cppcheck. diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index 6063d80..0640275 100644 ---

[LyX/2.3-staging] FindAndReplace: reorder includes

2016-05-20 Thread Jean-Marc Lasgouttes
commit f1302713e7eeb18a7cca44ce9594c4bf4329c6f5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 17:11:51 2016 +0100 FindAndReplace: reorder includes diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index f40666c..ac7084a

[LyX/2.3-staging] Use isMainText() instead of doing explicit tests

2016-05-20 Thread Jean-Marc Lasgouttes
commit af402d81c734211351c95eda3f7268739a23fa22 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 28 16:23:43 2016 +0100 Use isMainText() instead of doing explicit tests diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index fdf0da6..39eb2d4 100644 ---

[LyX/2.3-staging] Remove extra spacing around InsetCommand buttons

2016-05-23 Thread Jean-Marc Lasgouttes
commit 3a256ec042735adccec5408798ec181e7dcf45d4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon May 23 16:16:05 2016 +0200 Remove extra spacing around InsetCommand buttons There is already a spacing of 2 pixels on each side of a button (e.g. collapsed

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