[LyX/master] doc, templates and example files: use https for links to lyx.org

2017-12-14 Thread Uwe Stöhr
commit 28029074b2e3ffce1ec93613e659208268941244
Author: Uwe Stöhr 
Date:   Fri Dec 15 02:53:06 2017 +0100

doc, templates and example files: use https for links to lyx.org

 lib/doc/Additional.lyx |4 +-
 lib/doc/Customization.lyx  |   12 ++--
 lib/doc/Development.lyx|   82 +---
 lib/doc/Intro.lyx  |4 +-
 lib/doc/ar/Intro.lyx   |6 +-
 lib/doc/attic/eu_Customization.lyx |2 +-
 lib/doc/attic/eu_UserGuide.lyx |4 +-
 lib/doc/attic/id_UserGuide.lyx |4 +-
 lib/doc/attic/it_UserGuide.lyx |2 +-
 lib/doc/ca/Intro.lyx   |6 +-
 lib/doc/da/Intro.lyx   |4 +-
 lib/doc/de/Additional.lyx  |4 +-
 lib/doc/de/Customization.lyx   |   12 ++--
 lib/doc/de/Intro.lyx   |6 +-
 lib/doc/el/Intro.lyx   |6 +-
 lib/doc/es/Additional.lyx  |4 +-
 lib/doc/es/Customization.lyx   |   10 +-
 lib/doc/es/Intro.lyx   |4 +-
 lib/doc/eu/Intro.lyx   |6 +-
 lib/doc/fr/Additional.lyx  |4 +-
 lib/doc/fr/Customization.lyx   |   10 +-
 lib/doc/fr/Intro.lyx   |   10 +-
 lib/doc/gl/Intro.lyx   |4 +-
 lib/doc/he/Intro.lyx   |2 +-
 lib/doc/hu/Intro.lyx   |6 +-
 lib/doc/id/Intro.lyx   |6 +-
 lib/doc/it/Intro.lyx   |4 +-
 lib/doc/ja/Additional.lyx  |4 +-
 lib/doc/ja/Customization.lyx   |   12 ++--
 lib/doc/ja/Intro.lyx   |4 +-
 lib/doc/ja/UserGuide.lyx   |2 +-
 lib/doc/nb/Intro.lyx   |6 +-
 lib/doc/nl/Intro.lyx   |2 +-
 lib/doc/pl/Intro.lyx   |2 +-
 lib/doc/pt/Intro.lyx   |2 +-
 lib/doc/ro/Intro.lyx   |2 +-
 lib/doc/ru/Intro.lyx   |4 +-
 lib/doc/sk/Intro.lyx   |6 +-
 lib/doc/sl/Intro.lyx   |2 +-
 lib/doc/sv/Intro.lyx   |6 +-
 lib/doc/uk/Intro.lyx   |6 +-
 lib/doc/zh_CN/Intro.lyx|6 +-
 lib/examples/PDF-comment.lyx   |2 +-
 lib/examples/PDF-form.lyx  |6 +-
 lib/examples/aa_sample.lyx |2 +-
 lib/examples/achemso.lyx   |2 +-
 lib/examples/beamer.lyx|2 +-
 lib/examples/beamerposter.lyx  |2 +-
 lib/examples/colored-boxes.lyx |2 +-
 lib/examples/de/PDF-comment.lyx|2 +-
 lib/examples/de/PDF-form.lyx   |6 +-
 lib/examples/de/beamer.lyx |2 +-
 lib/examples/de/europassCV.lyx |2 +-
 lib/examples/de/linguistics.lyx|2 +-
 lib/examples/de/serienbrief1.lyx   |2 +-
 lib/examples/de/serienbrief2.lyx   |2 +-
 lib/examples/de/serienbrief3.lyx   |2 +-
 lib/examples/es/europeCV.lyx   |2 +-
 lib/examples/es/linguistics.lyx|2 +-
 lib/examples/es/modernCV.lyx   |2 +-
 lib/examples/europassCV.lyx|2 +-
 lib/examples/europeCV.lyx  |2 +-
 lib/examples/fr/PDF-comment.lyx|2 +-
 lib/examples/fr/beamer.lyx |2 +-
 lib/examples/fr/exemple_lyxifie.lyx|2 +-
 lib/examples/fr/linguistics.lyx|2 +-
 lib/examples/gnuplot.lyx   |2 +-
 lib/examples/ja/beamer.lyx |2 +-
 lib/examples/ja/linguistics.lyx|2 +-
 lib/examples/ja/sweave.lyx |2 +-
 lib/examples/ja/xypic.lyx  |6 +-
 lib/examples/linguistics.lyx   |2 +-
 lib/examples/modernCV.lyx  |2 +-
 lib/examples/springer/svmono_book-master.lyx   |2 +-
 lib/examples/springer/svmult_author.lyx|2 +-
 lib/examples/springer/svmult_editor-master.lyx |2 +-
 lib/examples/sweave.lyx|2 +-
 

[LyX/2.3.x] doc, templates and example files: use https for links to lyx.org

2017-12-14 Thread Uwe Stöhr
commit b83252b12fc9029a4eaeda98cbc760e6e8403b84
Author: Uwe Stöhr 
Date:   Fri Dec 15 02:52:07 2017 +0100

doc, templates and example files: use https for links to lyx.org

 lib/doc/Additional.lyx |4 ++--
 lib/doc/Customization.lyx  |   12 ++--
 lib/doc/Development.lyx|2 +-
 lib/doc/Intro.lyx  |4 ++--
 lib/doc/ar/Intro.lyx   |6 +++---
 lib/doc/attic/eu_Customization.lyx |2 +-
 lib/doc/attic/eu_UserGuide.lyx |4 ++--
 lib/doc/attic/id_UserGuide.lyx |4 ++--
 lib/doc/attic/it_UserGuide.lyx |2 +-
 lib/doc/ca/Intro.lyx   |6 +++---
 lib/doc/da/Intro.lyx   |4 ++--
 lib/doc/de/Additional.lyx  |4 ++--
 lib/doc/de/Customization.lyx   |   12 ++--
 lib/doc/de/Intro.lyx   |6 +++---
 lib/doc/el/Intro.lyx   |6 +++---
 lib/doc/es/Additional.lyx  |4 ++--
 lib/doc/es/Customization.lyx   |   10 +-
 lib/doc/es/Intro.lyx   |4 ++--
 lib/doc/eu/Intro.lyx   |6 +++---
 lib/doc/fr/Additional.lyx  |4 ++--
 lib/doc/fr/Customization.lyx   |   10 +-
 lib/doc/fr/Intro.lyx   |   10 +-
 lib/doc/gl/Intro.lyx   |4 ++--
 lib/doc/he/Intro.lyx   |2 +-
 lib/doc/hu/Intro.lyx   |6 +++---
 lib/doc/id/Intro.lyx   |6 +++---
 lib/doc/it/Intro.lyx   |4 ++--
 lib/doc/ja/Additional.lyx  |4 ++--
 lib/doc/ja/Customization.lyx   |   12 ++--
 lib/doc/ja/Intro.lyx   |4 ++--
 lib/doc/ja/UserGuide.lyx   |2 +-
 lib/doc/nb/Intro.lyx   |6 +++---
 lib/doc/nl/Intro.lyx   |2 +-
 lib/doc/pl/Intro.lyx   |2 +-
 lib/doc/pt/Intro.lyx   |2 +-
 lib/doc/ro/Intro.lyx   |2 +-
 lib/doc/ru/Intro.lyx   |4 ++--
 lib/doc/sk/Intro.lyx   |6 +++---
 lib/doc/sl/Intro.lyx   |2 +-
 lib/doc/sv/Intro.lyx   |6 +++---
 lib/doc/uk/Intro.lyx   |6 +++---
 lib/doc/zh_CN/Intro.lyx|6 +++---
 lib/examples/PDF-comment.lyx   |2 +-
 lib/examples/PDF-form.lyx  |6 +++---
 lib/examples/aa_sample.lyx |2 +-
 lib/examples/achemso.lyx   |2 +-
 lib/examples/beamer.lyx|2 +-
 lib/examples/beamerposter.lyx  |2 +-
 lib/examples/colored-boxes.lyx |2 +-
 lib/examples/de/PDF-comment.lyx|2 +-
 lib/examples/de/PDF-form.lyx   |6 +++---
 lib/examples/de/beamer.lyx |2 +-
 lib/examples/de/europassCV.lyx |2 +-
 lib/examples/de/linguistics.lyx|2 +-
 lib/examples/de/serienbrief1.lyx   |2 +-
 lib/examples/de/serienbrief2.lyx   |2 +-
 lib/examples/de/serienbrief3.lyx   |2 +-
 lib/examples/es/europeCV.lyx   |2 +-
 lib/examples/es/linguistics.lyx|2 +-
 lib/examples/es/modernCV.lyx   |2 +-
 lib/examples/europassCV.lyx|2 +-
 lib/examples/europeCV.lyx  |2 +-
 lib/examples/fr/PDF-comment.lyx|2 +-
 lib/examples/fr/beamer.lyx |2 +-
 lib/examples/fr/exemple_lyxifie.lyx|2 +-
 lib/examples/fr/linguistics.lyx|2 +-
 lib/examples/gnuplot.lyx   |2 +-
 lib/examples/ja/beamer.lyx |2 +-
 lib/examples/ja/linguistics.lyx|2 +-
 lib/examples/ja/sweave.lyx |2 +-
 lib/examples/ja/xypic.lyx  |6 +++---
 lib/examples/linguistics.lyx   |2 +-
 lib/examples/modernCV.lyx  |2 +-
 lib/examples/springer/svmono_book-master.lyx   |2 +-
 lib/examples/springer/svmult_author.lyx|2 +-
 

[LyX/master] doc files: review of links

2017-12-14 Thread Uwe Stöhr
commit bc4eff1e834182fff55d0c35c5adddfea53fb4ba
Author: Uwe Stöhr 
Date:   Fri Dec 15 02:31:36 2017 +0100

doc files: review of links

- correct dead links
- use https if possible

 lib/doc/Additional.lyx  |   12 ++--
 lib/doc/Customization.lyx   |2 +-
 lib/doc/EmbeddedObjects.lyx |   56 ++--
 lib/doc/LaTeXConfig.lyx |4 +-
 lib/doc/Math.lyx|   33 
 lib/doc/UserGuide.lyx   |   50 +-
 lib/doc/attic/eu_Additional.lyx |6 +-
 lib/doc/attic/eu_UserGuide.lyx  |   88 
 lib/doc/attic/id_UserGuide.lyx  |  106 +++---
 lib/doc/attic/pl_Additional.lyx |4 +-
 lib/doc/de/Additional.lyx   |   22 
 lib/doc/de/Customization.lyx|2 +-
 lib/doc/de/EmbeddedObjects.lyx  |   66 ++--
 lib/doc/de/Math.lyx |   30 ++--
 lib/doc/de/UserGuide.lyx|   62 +++
 lib/doc/es/Additional.lyx   |6 +-
 lib/doc/es/Customization.lyx|2 +-
 lib/doc/es/EmbeddedObjects.lyx  |   57 ++---
 lib/doc/es/Math.lyx |   27 +-
 lib/doc/es/UserGuide.lyx|   50 +-
 lib/doc/fr/Additional.lyx   |   16 +++---
 lib/doc/fr/Customization.lyx|2 +-
 lib/doc/fr/EmbeddedObjects.lyx  |   66 ++--
 lib/doc/fr/Math.lyx |   31 ++--
 lib/doc/fr/UserGuide.lyx|   58 ++---
 lib/doc/he/Intro.lyx|4 +-
 lib/doc/he/Tutorial.lyx |2 +-
 lib/doc/ja/Additional.lyx   |8 ++--
 lib/doc/ja/Customization.lyx|2 +-
 lib/doc/ja/EmbeddedObjects.lyx  |   57 ++---
 lib/doc/ja/LaTeXConfig.lyx  |4 +-
 lib/doc/ja/Math.lyx |   27 +-
 lib/doc/ja/Tutorial.lyx |2 +-
 lib/doc/ja/UserGuide.lyx|   48 +-
 34 files changed, 494 insertions(+), 518 deletions(-)


[LyX/2.3.x] doc files: review of links

2017-12-14 Thread Uwe Stöhr
commit 3494fa5607f3c00f7938c81c0e5fbd4ac2f32d27
Author: Uwe Stöhr 
Date:   Fri Dec 15 02:30:32 2017 +0100

doc files: review of links

- correct dead links
- use https if possible

 lib/doc/Additional.lyx  |   12 ++--
 lib/doc/Customization.lyx   |2 +-
 lib/doc/EmbeddedObjects.lyx |   56 ++--
 lib/doc/LaTeXConfig.lyx |4 +-
 lib/doc/Math.lyx|   33 
 lib/doc/UserGuide.lyx   |   50 +-
 lib/doc/attic/eu_Additional.lyx |6 +-
 lib/doc/attic/eu_UserGuide.lyx  |   88 
 lib/doc/attic/id_UserGuide.lyx  |  106 +++---
 lib/doc/attic/pl_Additional.lyx |4 +-
 lib/doc/de/Additional.lyx   |   22 
 lib/doc/de/Customization.lyx|2 +-
 lib/doc/de/EmbeddedObjects.lyx  |   66 ++--
 lib/doc/de/Math.lyx |   30 ++--
 lib/doc/de/UserGuide.lyx|   58 ++---
 lib/doc/es/Additional.lyx   |6 +-
 lib/doc/es/Customization.lyx|2 +-
 lib/doc/es/EmbeddedObjects.lyx  |   57 ++---
 lib/doc/es/Math.lyx |   27 +-
 lib/doc/es/UserGuide.lyx|   50 +-
 lib/doc/fr/Additional.lyx   |   14 +++---
 lib/doc/fr/Customization.lyx|2 +-
 lib/doc/fr/EmbeddedObjects.lyx  |   66 ++--
 lib/doc/fr/Math.lyx |   31 ++--
 lib/doc/fr/UserGuide.lyx|   58 ++---
 lib/doc/he/Intro.lyx|4 +-
 lib/doc/he/Tutorial.lyx |2 +-
 lib/doc/ja/Additional.lyx   |8 ++--
 lib/doc/ja/Customization.lyx|2 +-
 lib/doc/ja/EmbeddedObjects.lyx  |   57 ++---
 lib/doc/ja/LaTeXConfig.lyx  |4 +-
 lib/doc/ja/Math.lyx |   27 +-
 lib/doc/ja/Tutorial.lyx |2 +-
 lib/doc/ja/UserGuide.lyx|   48 +-
 34 files changed, 491 insertions(+), 515 deletions(-)


[LyX/master] chkconfig.ltx: correct sorting

2017-12-14 Thread Uwe Stöhr
commit 18829e8c2fc1bb3f90dfaf7c0ecd0c7fe2121dfb
Author: Uwe Stöhr 
Date:   Thu Dec 14 20:18:40 2017 +0100

chkconfig.ltx: correct sorting
---
 lib/chkconfig.ltx |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx
index 41d73e8..402d4f0 100644
--- a/lib/chkconfig.ltx
+++ b/lib/chkconfig.ltx
@@ -459,8 +459,8 @@
 \TestPackage{MinionPro}
 \TestFont[rzmnr]{minion2newtx}
 \TestPackage{newtxmath}
-\TestPackage{noto}
 \TestPackage[binhex.tex]{binhex} % required by newtxmath
+\TestPackage{noto}
 \TestFont[psyr]{symbol}
 \TestPackage{tgadventor}
 \TestPackage{tgbonum}


[LyX/master] UserGuide.lyx: review links

2017-12-14 Thread Uwe Stöhr
commit a6c6e317458aaf88b1ec64b5fca0ae84f5805b19
Author: Uwe Stöhr 
Date:   Thu Dec 14 18:50:56 2017 +0100

UserGuide.lyx: review links

- update broken links
- use https if possible
- removed outdated section
- save LyXDocs.bib with JabRef 4

 lib/doc/Changelog-UserGuide-LyX_23x.txt |1 +
 lib/doc/UserGuide.lyx   |  209 --
 lib/doc/biblio/LyXDocs.bib  |   56 +++---
 lib/doc/de/UserGuide.lyx|   92 +-
 lib/doc/es/UserGuide.lyx|  227 ++--
 lib/doc/fr/UserGuide.lyx|  287 +--
 lib/doc/ja/UserGuide.lyx|  255 ---
 7 files changed, 253 insertions(+), 874 deletions(-)


[LyX/2.3.x] UserGuide.lyx: review links

2017-12-14 Thread Uwe Stöhr
commit 832b333caeb06383d34a7f13fb4fa2f9ab160ffe
Author: Uwe Stöhr 
Date:   Thu Dec 14 18:49:11 2017 +0100

UserGuide.lyx: review links

- update broken links
- use https if possible
- removed outdated section
- save LyXDocs.bib with JabRef 4

 lib/doc/Changelog-UserGuide-LyX_23x.txt |1 +
 lib/doc/UserGuide.lyx   |  209 --
 lib/doc/biblio/LyXDocs.bib  |   56 +++---
 lib/doc/de/UserGuide.lyx|   96 ++-
 lib/doc/es/UserGuide.lyx|  227 ++--
 lib/doc/fr/UserGuide.lyx|  287 +--
 lib/doc/ja/UserGuide.lyx|  255 ---
 7 files changed, 257 insertions(+), 874 deletions(-)


[LyX/2.3.x] example files: use https links

2017-12-14 Thread Uwe Stöhr
commit 3c6fa867ee64f6cc7af95539eea4171f16c7050c
Author: Uwe Stöhr 
Date:   Thu Dec 14 16:40:27 2017 +0100

example files: use https links
---
 lib/examples/aas_sample.lyx   |2 +-
 lib/examples/ca/splash.lyx|2 +-
 lib/examples/cs/splash.lyx|2 +-
 lib/examples/da/splash.lyx|2 +-
 lib/examples/de/splash.lyx|2 +-
 lib/examples/el/splash.lyx|2 +-
 lib/examples/es/splash.lyx|2 +-
 lib/examples/eu/splash.lyx|2 +-
 lib/examples/fa/splash.lyx|2 +-
 lib/examples/fr/splash.lyx|2 +-
 lib/examples/gl/splash.lyx|2 +-
 lib/examples/he/splash.lyx|2 +-
 lib/examples/hu/splash.lyx|2 +-
 lib/examples/id/splash.lyx|2 +-
 lib/examples/it/splash.lyx|2 +-
 lib/examples/ja/splash.lyx|2 +-
 lib/examples/ja/sweave.lyx|2 +-
 lib/examples/ko/splash.lyx|2 +-
 lib/examples/listerrors.lyx   |2 +-
 lib/examples/nb/splash.lyx|2 +-
 lib/examples/nl/splash.lyx|2 +-
 lib/examples/pl/splash.lyx|2 +-
 lib/examples/pt_BR/splash.lyx |2 +-
 lib/examples/pt_PT/splash.lyx |2 +-
 lib/examples/ro/splash.lyx|2 +-
 lib/examples/sk/splash.lyx|2 +-
 lib/examples/sl/splash.lyx|2 +-
 lib/examples/splash.lyx   |2 +-
 lib/examples/sr/splash.lyx|2 +-
 lib/examples/sv/splash.lyx|2 +-
 lib/examples/sweave.lyx   |2 +-
 lib/examples/uk/splash.lyx|2 +-
 32 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/lib/examples/aas_sample.lyx b/lib/examples/aas_sample.lyx
index 93dbb13..fd73b97 100644
--- a/lib/examples/aas_sample.lyx
+++ b/lib/examples/aas_sample.lyx
@@ -161,7 +161,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/trac/ticket/10027
+https://www.lyx.org/trac/ticket/10027
 \end_layout
 
 \end_inset
diff --git a/lib/examples/ca/splash.lyx b/lib/examples/ca/splash.lyx
index 359c920..ddfd05f 100644
--- a/lib/examples/ca/splash.lyx
+++ b/lib/examples/ca/splash.lyx
@@ -222,7 +222,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/cs/splash.lyx b/lib/examples/cs/splash.lyx
index 0c6ac03..2401d99 100644
--- a/lib/examples/cs/splash.lyx
+++ b/lib/examples/cs/splash.lyx
@@ -200,7 +200,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/da/splash.lyx b/lib/examples/da/splash.lyx
index 87f9051..c6fffa0 100644
--- a/lib/examples/da/splash.lyx
+++ b/lib/examples/da/splash.lyx
@@ -210,7 +210,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/de/splash.lyx b/lib/examples/de/splash.lyx
index 13b7e7c..a86d8bc 100644
--- a/lib/examples/de/splash.lyx
+++ b/lib/examples/de/splash.lyx
@@ -198,7 +198,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebDe.Home
+https://www.lyx.org/WebDe.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/el/splash.lyx b/lib/examples/el/splash.lyx
index 5feba15..54b9749 100644
--- a/lib/examples/el/splash.lyx
+++ b/lib/examples/el/splash.lyx
@@ -199,7 +199,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/es/splash.lyx b/lib/examples/es/splash.lyx
index f6c461f..02d7ffe 100644
--- a/lib/examples/es/splash.lyx
+++ b/lib/examples/es/splash.lyx
@@ -198,7 +198,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebEs.Home
+https://www.lyx.org/WebEs.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/eu/splash.lyx b/lib/examples/eu/splash.lyx
index d246b13..bfc0f28 100644
--- a/lib/examples/eu/splash.lyx
+++ b/lib/examples/eu/splash.lyx
@@ -216,7 +216,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/fa/splash.lyx b/lib/examples/fa/splash.lyx
index 8f95828..d3e3e8b 100644
--- a/lib/examples/fa/splash.lyx
+++ b/lib/examples/fa/splash.lyx
@@ -225,7 +225,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/fr/splash.lyx b/lib/examples/fr/splash.lyx
index fee8e87..cc5ae9d 100644
--- a/lib/examples/fr/splash.lyx
+++ b/lib/examples/fr/splash.lyx
@@ -204,7 +204,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebFr.Home
+https://www.lyx.org/WebFr.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/gl/splash.lyx b/lib/examples/gl/splash.lyx
index 93a18f8..68f1f0f 100644
--- a/lib/examples/gl/splash.lyx
+++ b/lib/examples/gl/splash.lyx
@@ -206,7 +206,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git 

[LyX/master] example files: use https links

2017-12-14 Thread Uwe Stöhr
commit b9574fd45df9bb2a474f49e351d72350aa26fab1
Author: Uwe Stöhr 
Date:   Thu Dec 14 16:39:14 2017 +0100

example files: use https links
---
 lib/examples/aas_sample.lyx   |2 +-
 lib/examples/ca/splash.lyx|2 +-
 lib/examples/cs/splash.lyx|2 +-
 lib/examples/da/splash.lyx|2 +-
 lib/examples/de/splash.lyx|2 +-
 lib/examples/el/splash.lyx|2 +-
 lib/examples/es/splash.lyx|2 +-
 lib/examples/eu/splash.lyx|2 +-
 lib/examples/fa/splash.lyx|2 +-
 lib/examples/fr/splash.lyx|2 +-
 lib/examples/gl/splash.lyx|2 +-
 lib/examples/he/splash.lyx|2 +-
 lib/examples/hu/splash.lyx|2 +-
 lib/examples/id/splash.lyx|2 +-
 lib/examples/it/splash.lyx|2 +-
 lib/examples/ja/splash.lyx|2 +-
 lib/examples/ja/sweave.lyx|2 +-
 lib/examples/ko/splash.lyx|2 +-
 lib/examples/listerrors.lyx   |2 +-
 lib/examples/nb/splash.lyx|2 +-
 lib/examples/nl/splash.lyx|2 +-
 lib/examples/pl/splash.lyx|2 +-
 lib/examples/pt_BR/splash.lyx |2 +-
 lib/examples/pt_PT/splash.lyx |2 +-
 lib/examples/ro/splash.lyx|2 +-
 lib/examples/sk/splash.lyx|2 +-
 lib/examples/sl/splash.lyx|2 +-
 lib/examples/splash.lyx   |2 +-
 lib/examples/sr/splash.lyx|2 +-
 lib/examples/sv/splash.lyx|2 +-
 lib/examples/sweave.lyx   |2 +-
 lib/examples/uk/splash.lyx|2 +-
 32 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/lib/examples/aas_sample.lyx b/lib/examples/aas_sample.lyx
index 93dbb13..fd73b97 100644
--- a/lib/examples/aas_sample.lyx
+++ b/lib/examples/aas_sample.lyx
@@ -161,7 +161,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/trac/ticket/10027
+https://www.lyx.org/trac/ticket/10027
 \end_layout
 
 \end_inset
diff --git a/lib/examples/ca/splash.lyx b/lib/examples/ca/splash.lyx
index 359c920..ddfd05f 100644
--- a/lib/examples/ca/splash.lyx
+++ b/lib/examples/ca/splash.lyx
@@ -222,7 +222,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/cs/splash.lyx b/lib/examples/cs/splash.lyx
index 0c6ac03..2401d99 100644
--- a/lib/examples/cs/splash.lyx
+++ b/lib/examples/cs/splash.lyx
@@ -200,7 +200,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/da/splash.lyx b/lib/examples/da/splash.lyx
index 87f9051..c6fffa0 100644
--- a/lib/examples/da/splash.lyx
+++ b/lib/examples/da/splash.lyx
@@ -210,7 +210,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/de/splash.lyx b/lib/examples/de/splash.lyx
index 13b7e7c..a86d8bc 100644
--- a/lib/examples/de/splash.lyx
+++ b/lib/examples/de/splash.lyx
@@ -198,7 +198,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebDe.Home
+https://www.lyx.org/WebDe.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/el/splash.lyx b/lib/examples/el/splash.lyx
index 5feba15..54b9749 100644
--- a/lib/examples/el/splash.lyx
+++ b/lib/examples/el/splash.lyx
@@ -199,7 +199,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/es/splash.lyx b/lib/examples/es/splash.lyx
index f6c461f..02d7ffe 100644
--- a/lib/examples/es/splash.lyx
+++ b/lib/examples/es/splash.lyx
@@ -198,7 +198,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebEs.Home
+https://www.lyx.org/WebEs.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/eu/splash.lyx b/lib/examples/eu/splash.lyx
index d246b13..bfc0f28 100644
--- a/lib/examples/eu/splash.lyx
+++ b/lib/examples/eu/splash.lyx
@@ -216,7 +216,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/fa/splash.lyx b/lib/examples/fa/splash.lyx
index 8f95828..d3e3e8b 100644
--- a/lib/examples/fa/splash.lyx
+++ b/lib/examples/fa/splash.lyx
@@ -225,7 +225,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git a/lib/examples/fr/splash.lyx b/lib/examples/fr/splash.lyx
index fee8e87..cc5ae9d 100644
--- a/lib/examples/fr/splash.lyx
+++ b/lib/examples/fr/splash.lyx
@@ -204,7 +204,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/WebFr.Home
+https://www.lyx.org/WebFr.Home
 \end_layout
 
 \end_inset
diff --git a/lib/examples/gl/splash.lyx b/lib/examples/gl/splash.lyx
index 93a18f8..68f1f0f 100644
--- a/lib/examples/gl/splash.lyx
+++ b/lib/examples/gl/splash.lyx
@@ -206,7 +206,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
diff --git 

[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/RowPainter.cpp
index 85f450e..6fbc783 100644
--- a/src/RowPainter.cpp
+++ b/src/RowPainter.cpp
@@ -196,7 +196,6 @@ void RowPainter::paintMisspelledMark(Row::Element const & 
e) const
continue;
}
 
-   FontMetrics const & fm = theFontMetrics(e.font);
int x1 = fm.pos2x(e.str, range.first - e.pos,
  e.isRTL(), e.extra);
int x2 = fm.pos2x(e.str, min(range.last - e.pos + 1,


[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(+), 4 deletions(-)

diff --git a/src/Row.cpp b/src/Row.cpp
index 3fb87bd..e105ae2 100644
--- a/src/Row.cpp
+++ b/src/Row.cpp
@@ -169,11 +169,11 @@ Row::Row()
 {}
 
 
-bool Row::isMarginSelected(bool left_margin, DocIterator const & beg,
+bool Row::isMarginSelected(bool left, DocIterator const & beg,
DocIterator const & end) const
 {
-   pos_type const sel_pos = left_margin ? sel_beg : sel_end;
-   pos_type const margin_pos = left_margin ? pos_ : end_;
+   pos_type const sel_pos = left ? sel_beg : sel_end;
+   pos_type const margin_pos = left ? pos_ : end_;
 
// Is the chosen margin selected ?
if (sel_pos == margin_pos) {
diff --git a/src/Row.h b/src/Row.h
index 49513d3..e45fa4e 100644
--- a/src/Row.h
+++ b/src/Row.h
@@ -321,7 +321,7 @@ private:
  * \param beg
  * \param end
  */
-   bool isMarginSelected(bool left_margin, DocIterator const & beg,
+   bool isMarginSelected(bool left, DocIterator const & beg,
DocIterator const & end) const;
 
/**


[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, 10 insertions(+), 21 deletions(-)

diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index bb7c64c..86fd840 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -1261,10 +1261,8 @@ docstring const BiblioInfo::getYear(docstring const & 
key, bool use_modifier) co
if (xrefs.empty())
// no luck
return docstring();
-   vector::const_iterator it = xrefs.begin();
-   vector::const_iterator en = xrefs.end();
-   for (; it != en; ++it) {
-   BiblioInfo::const_iterator const xrefit = find(*it);
+   for (docstring const & xref : xrefs) {
+   BiblioInfo::const_iterator const xrefit = find(xref);
if (xrefit == end())
continue;
BibTeXInfo const & xref_data = xrefit->second;
@@ -1298,14 +1296,10 @@ docstring const BiblioInfo::getInfo(docstring const & 
key,
BibTeXInfo const & data = it->second;
BibTeXInfoList xrefptrs;
vector const xrefs = getXRefs(data);
-   if (!xrefs.empty()) {
-   vector::const_iterator it = xrefs.begin();
-   vector::const_iterator en = xrefs.end();
-   for (; it != en; ++it) {
-   BiblioInfo::const_iterator const xrefit = find(*it);
-   if (xrefit != end())
-   xrefptrs.push_back(&(xrefit->second));
-   }
+   for (docstring const & xref : getXRefs(data)) {
+   BiblioInfo::const_iterator const xrefit = find(xref);
+   if (xrefit != end())
+   xrefptrs.push_back(&(xrefit->second));
}
return data.getInfo(xrefptrs, buf, ci);
 }
@@ -1337,15 +1331,10 @@ docstring const BiblioInfo::getLabel(vector 
keys,
vector xrefptrs;
if (it != end()) {
data = it->second;
-   vector const xrefs = getXRefs(data);
-   if (!xrefs.empty()) {
-   vector::const_iterator it = 
xrefs.begin();
-   vector::const_iterator en = 
xrefs.end();
-   for (; it != en; ++it) {
-   BiblioInfo::const_iterator const xrefit 
= find(*it);
-   if (xrefit != end())
-   
xrefptrs.push_back(&(xrefit->second));
-   }
+   for (docstring const & xref : getXRefs(data)) {
+   BiblioInfo::const_iterator const xrefit = 
find(xref);
+   if (xrefit != end())
+   xrefptrs.push_back(&(xrefit->second));
}
}
ret = data.getLabel(xrefptrs, buf, ret, ci, key + 1 != ken, i 
== 1);


[LyX/2.3.x] Russian splash.lyx: updates from Yuriy

2017-12-14 Thread Uwe Stöhr
commit f97dd4f06e2862315679bac1cb20c307a5b062f3
Author: Uwe Stöhr 
Date:   Thu Dec 14 14:48:52 2017 +0100

Russian splash.lyx: updates from Yuriy
---
 lib/examples/ru/splash.lyx |  136 ---
 1 files changed, 51 insertions(+), 85 deletions(-)

diff --git a/lib/examples/ru/splash.lyx b/lib/examples/ru/splash.lyx
index c55c985..e836073 100644
--- a/lib/examples/ru/splash.lyx
+++ b/lib/examples/ru/splash.lyx
@@ -83,13 +83,13 @@
 \end_layout
 
 \begin_layout Section*
-Главные N вещей, которые нужно знать при работе в \SpecialChar LyX
+Главные вещи, которые нужно знать при работе в \SpecialChar LyX
 
 \end_layout
 
 \begin_layout Enumerate
 \SpecialChar LyX
- поставляется с прекрасным набором документации — пользуйтесь ей! Начните
+ поставляется с отличной документацией — пожалуйста, пользуйтесь ей! Начните
  с выбора пункта меню 
 \family sans
 Помощь\SpecialChar menuseparator
@@ -107,28 +107,13 @@
 
 \begin_layout Enumerate
 Мы называем \SpecialChar LyX
- 
-\begin_inset Quotes cld
-\end_inset
-
-процессором документов
-\begin_inset Quotes crd
-\end_inset
-
-.
- Эта программа отличается по замыслу от обычных 
-\begin_inset Quotes cld
-\end_inset
-
-текстовых процессоров
-\begin_inset Quotes crd
-\end_inset
-
+ «процессором документов».
+ Эта программа отличается по замыслу от обычных «текстовых процессоров»
  — с помощью \SpecialChar LyX
  процесс создания документа упрощается.
  Но не пугайтесь, если этот процесс несколько отличается от того, к которому
  вы привыкли.
- Возникшие у вас вопросы может прояснить документация.
+ Возникшие у вас вопросы может прояснить документация
 \begin_inset Foot
 status collapsed
 
@@ -138,17 +123,16 @@ status collapsed
 
 \end_inset
 
-
+.
 \end_layout
 
 \begin_layout Enumerate
 Вывод программы \SpecialChar LyX
- выглядит потрясающе! Чтобы сейчас же в этом убедиться,
- выберите пункт меню 
+ выглядит потрясающе! Чтобы в этом убедиться, выберите пункт
+ меню 
 \family sans
-\lang english
-Document\SpecialChar menuseparator
-View
+Документ\SpecialChar menuseparator
+Просмотреть
 \begin_inset space ~
 \end_inset
 
@@ -158,50 +142,41 @@ View
 
 (pdflatex)]
 \family default
-\lang russian
-.
+ или нажмите кнопку 
+\begin_inset Info
+type  "icon"
+arg   "buffer-view"
+\end_inset
+
+ на панели инструментов.
 \end_layout
 
 \begin_layout Enumerate
-\SpecialChar LyX
- может имитировать всю (или почти всю) функциональность системы \SpecialChar 
LaTeX
+Да, \SpecialChar LyX
+ может использовать (почти) все возможности системы \SpecialChar LaTeX
 .
- И, кроме того, \SpecialChar LyX
- может импортировать файлы, созданные для \SpecialChar LaTeX
+ И да, \SpecialChar LyX
+ может импортировать файлы \SpecialChar LaTeX
 .
  Опытные пользователи \SpecialChar LaTeX
  могут лишь бегло просмотреть остальную часть 
 \emph on
 Самоучителя
 \emph default
-, и приступить к чтению главы 
-\begin_inset Quotes cld
-\end_inset
-
-\SpecialChar LyX
+ и затем приступить к чтению главы «\SpecialChar LyX
  для пользователей \SpecialChar LaTeX
-
-\begin_inset Quotes crd
-\end_inset
-
-.
- (Всем остальным: не беспокойтесь, вам необязательно знать \SpecialChar LaTeX
- для работы в
- \SpecialChar LyX
-.)
+» (всем остальным:
+ не беспокойтесь, вам необязательно знать \SpecialChar LaTeX
+ для работы в \SpecialChar LyX
+).
 \end_layout
 
 \begin_layout Enumerate
 \SpecialChar LyX
- содержит множество возможностей для чтения или создания документов на языке,
- отличном от английского.
+ содержит множество возможностей для пользователей, читающих или пишущих
+ на языке, отличном от английского.
  В дополнение к этому, назначения клавиш, набор кнопок панели управления
- и многие другие свойства программы допускают очень гибкую настройку (в
- основном, с помощью правки вашего файла 
-\family typewriter
-lyxrc
-\family default
-).
+ и многие другие свойства программы допускают очень гибкую настройку.
  Для более подробной информации найдите в меню пункт 
 \family sans
 Помощь\SpecialChar menuseparator
@@ -211,33 +186,33 @@ lyxrc
 \end_layout
 
 \begin_layout Enumerate
-Страница \SpecialChar LyX
- в Internet находится по адресу 
+Домашняя страница \SpecialChar LyX
+ находится по адресу 
 \begin_inset Flex URL
 status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
 
 .
- Вы можете найти информацию о программе \SpecialChar LyX
-, подписаться на списки рассылки,
- ознакомиться с графическими образами экрана \SpecialChar LyX
-, и многое другое.
+ Там вы сможете получить информацию о программе \SpecialChar LyX
+, подписаться на списки
+ рассылки, ознакомиться с графическими образами экрана \SpecialChar LyX
+ и многое другое.
 \end_layout
 
 \begin_layout Enumerate
 
 \series bold
-\lang english
-Note for Linux users:
+Замечание для пользователей Linux:
 \series default
- Please check that the language packages for the \SpecialChar LaTeX
- distribution 
+ пожалуйста, не забудьте установить необходимые 

[LyX/2.3.x] Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x

2017-12-14 Thread Uwe Stöhr
commit a0130c343b9410b52811fb8aa7fb06bd346badc2
Merge: f97dd4f cab1d12
Author: Uwe Stöhr 
Date:   Thu Dec 14 14:49:16 2017 +0100

Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x

 po/de.gmo |  Bin 539574 -> 540058 bytes
 po/de.po  |   12 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)


[LyX/master] Russian splash.lyx: updates from Yuriy

2017-12-14 Thread Uwe Stöhr
commit 639d63607a796d8875d9b3e3575669829b3e4245
Author: Uwe Stöhr 
Date:   Thu Dec 14 14:50:03 2017 +0100

Russian splash.lyx: updates from Yuriy
---
 lib/examples/ru/splash.lyx |  136 ---
 1 files changed, 51 insertions(+), 85 deletions(-)

diff --git a/lib/examples/ru/splash.lyx b/lib/examples/ru/splash.lyx
index c55c985..e836073 100644
--- a/lib/examples/ru/splash.lyx
+++ b/lib/examples/ru/splash.lyx
@@ -83,13 +83,13 @@
 \end_layout
 
 \begin_layout Section*
-Главные N вещей, которые нужно знать при работе в \SpecialChar LyX
+Главные вещи, которые нужно знать при работе в \SpecialChar LyX
 
 \end_layout
 
 \begin_layout Enumerate
 \SpecialChar LyX
- поставляется с прекрасным набором документации — пользуйтесь ей! Начните
+ поставляется с отличной документацией — пожалуйста, пользуйтесь ей! Начните
  с выбора пункта меню 
 \family sans
 Помощь\SpecialChar menuseparator
@@ -107,28 +107,13 @@
 
 \begin_layout Enumerate
 Мы называем \SpecialChar LyX
- 
-\begin_inset Quotes cld
-\end_inset
-
-процессором документов
-\begin_inset Quotes crd
-\end_inset
-
-.
- Эта программа отличается по замыслу от обычных 
-\begin_inset Quotes cld
-\end_inset
-
-текстовых процессоров
-\begin_inset Quotes crd
-\end_inset
-
+ «процессором документов».
+ Эта программа отличается по замыслу от обычных «текстовых процессоров»
  — с помощью \SpecialChar LyX
  процесс создания документа упрощается.
  Но не пугайтесь, если этот процесс несколько отличается от того, к которому
  вы привыкли.
- Возникшие у вас вопросы может прояснить документация.
+ Возникшие у вас вопросы может прояснить документация
 \begin_inset Foot
 status collapsed
 
@@ -138,17 +123,16 @@ status collapsed
 
 \end_inset
 
-
+.
 \end_layout
 
 \begin_layout Enumerate
 Вывод программы \SpecialChar LyX
- выглядит потрясающе! Чтобы сейчас же в этом убедиться,
- выберите пункт меню 
+ выглядит потрясающе! Чтобы в этом убедиться, выберите пункт
+ меню 
 \family sans
-\lang english
-Document\SpecialChar menuseparator
-View
+Документ\SpecialChar menuseparator
+Просмотреть
 \begin_inset space ~
 \end_inset
 
@@ -158,50 +142,41 @@ View
 
 (pdflatex)]
 \family default
-\lang russian
-.
+ или нажмите кнопку 
+\begin_inset Info
+type  "icon"
+arg   "buffer-view"
+\end_inset
+
+ на панели инструментов.
 \end_layout
 
 \begin_layout Enumerate
-\SpecialChar LyX
- может имитировать всю (или почти всю) функциональность системы \SpecialChar 
LaTeX
+Да, \SpecialChar LyX
+ может использовать (почти) все возможности системы \SpecialChar LaTeX
 .
- И, кроме того, \SpecialChar LyX
- может импортировать файлы, созданные для \SpecialChar LaTeX
+ И да, \SpecialChar LyX
+ может импортировать файлы \SpecialChar LaTeX
 .
  Опытные пользователи \SpecialChar LaTeX
  могут лишь бегло просмотреть остальную часть 
 \emph on
 Самоучителя
 \emph default
-, и приступить к чтению главы 
-\begin_inset Quotes cld
-\end_inset
-
-\SpecialChar LyX
+ и затем приступить к чтению главы «\SpecialChar LyX
  для пользователей \SpecialChar LaTeX
-
-\begin_inset Quotes crd
-\end_inset
-
-.
- (Всем остальным: не беспокойтесь, вам необязательно знать \SpecialChar LaTeX
- для работы в
- \SpecialChar LyX
-.)
+» (всем остальным:
+ не беспокойтесь, вам необязательно знать \SpecialChar LaTeX
+ для работы в \SpecialChar LyX
+).
 \end_layout
 
 \begin_layout Enumerate
 \SpecialChar LyX
- содержит множество возможностей для чтения или создания документов на языке,
- отличном от английского.
+ содержит множество возможностей для пользователей, читающих или пишущих
+ на языке, отличном от английского.
  В дополнение к этому, назначения клавиш, набор кнопок панели управления
- и многие другие свойства программы допускают очень гибкую настройку (в
- основном, с помощью правки вашего файла 
-\family typewriter
-lyxrc
-\family default
-).
+ и многие другие свойства программы допускают очень гибкую настройку.
  Для более подробной информации найдите в меню пункт 
 \family sans
 Помощь\SpecialChar menuseparator
@@ -211,33 +186,33 @@ lyxrc
 \end_layout
 
 \begin_layout Enumerate
-Страница \SpecialChar LyX
- в Internet находится по адресу 
+Домашняя страница \SpecialChar LyX
+ находится по адресу 
 \begin_inset Flex URL
 status collapsed
 
 \begin_layout Plain Layout
 
-http://www.lyx.org/
+https://www.lyx.org/
 \end_layout
 
 \end_inset
 
 .
- Вы можете найти информацию о программе \SpecialChar LyX
-, подписаться на списки рассылки,
- ознакомиться с графическими образами экрана \SpecialChar LyX
-, и многое другое.
+ Там вы сможете получить информацию о программе \SpecialChar LyX
+, подписаться на списки
+ рассылки, ознакомиться с графическими образами экрана \SpecialChar LyX
+ и многое другое.
 \end_layout
 
 \begin_layout Enumerate
 
 \series bold
-\lang english
-Note for Linux users:
+Замечание для пользователей Linux:
 \series default
- Please check that the language packages for the \SpecialChar LaTeX
- distribution 
+ пожалуйста, не забудьте установить необходимые 

[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(+), 8 deletions(-)

diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp
index 700049d..0740fb4 100644
--- a/src/insets/InsetInfo.cpp
+++ b/src/insets/InsetInfo.cpp
@@ -408,12 +408,9 @@ void InsetInfo::updateBuffer(ParIterator const & it, 
UpdateType utype) {
Font const f(inherit_font, buffer().params().language);
//Font fu = f;
//fu.fontInfo().setUnderbar(FONT_ON);
-   docstring_list::const_iterator beg = names.begin();
-   docstring_list::const_iterator end = names.end();
-   for (docstring_list::const_iterator it = beg ;
-it != end ; ++it) {
+   for (docstring const & name : names) {
// do not insert > for the top level menu item
-   if (it != beg)
+   if ( != ())
par.insertInset(par.size(), new 
InsetSpecialChar(InsetSpecialChar::MENU_SEPARATOR),
f, Change(Change::UNCHANGED));
//FIXME: add proper underlines here. This
@@ -421,9 +418,8 @@ void InsetInfo::updateBuffer(ParIterator const & it, 
UpdateType utype) {
// return a vector of menus. If we do not do
// that, we might as well use below
// Paragraph::insert on each string (JMarc)
-   for (size_type i = 0; i != it->length(); ++i)
-   par.insertChar(par.size(), (*it)[i],
-  f, Change(Change::UNCHANGED));
+   for (char_type c : name)
+   par.insertChar(par.size(), c, f, 
Change(Change::UNCHANGED));
}
break;
}


[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/InsetGraphicsParams.cpp 
b/src/insets/InsetGraphicsParams.cpp
index b7ea377..c401065 100644
--- a/src/insets/InsetGraphicsParams.cpp
+++ b/src/insets/InsetGraphicsParams.cpp
@@ -288,10 +288,8 @@ graphics::Params InsetGraphicsParams::as_grfxParams() const
}
 
// Paranoia check.
-   int const width  = pars.bb.xr.inBP() - pars.bb.xl.inBP();
-   int const height = pars.bb.yt.inBP() - pars.bb.yb.inBP();
-
-   if (width  < 0 || height < 0) {
+   if (pars.bb.xr.inBP() < pars.bb.xl.inBP()
+   || pars.bb.yt.inBP() < pars.bb.yb.inBP()) {
pars.bb.xl = Length();
pars.bb.xr = Length();
pars.bb.yb = Length();