]> git.lyx.org Git - lyx.git/log
lyx.git
4 years agoCmake build: Install executables as programms
Kornel Benko [Wed, 27 Nov 2019 14:05:44 +0000 (15:05 +0100)]
Cmake build: Install executables as programms

Patch from Patrick (pdvisschere@edpnet.be)

4 years agotypo
Pavel Sanda [Thu, 21 Nov 2019 16:13:47 +0000 (17:13 +0100)]
typo

4 years agoReduce number of strings (the same one in buffer).
Pavel Sanda [Thu, 21 Nov 2019 16:11:09 +0000 (17:11 +0100)]
Reduce number of strings (the same one in buffer).

4 years agoPrevious header change breaks postats script for web.
Pavel Sanda [Thu, 21 Nov 2019 14:35:42 +0000 (15:35 +0100)]
Previous header change breaks postats script for web.

4 years agoFix crash with polyglossia and intitle commands when lang_auto_end is false
Juergen Spitzmueller [Thu, 21 Nov 2019 07:38:21 +0000 (08:38 +0100)]
Fix crash with polyglossia and intitle commands when lang_auto_end is false

4 years agoGuiSelectionManager: fix getSelectedIndex for availableLV
Juergen Spitzmueller [Wed, 20 Nov 2019 13:07:05 +0000 (14:07 +0100)]
GuiSelectionManager: fix getSelectedIndex for availableLV

4 years agoFix issues with tilde in inputpath
Juergen Spitzmueller [Wed, 20 Nov 2019 10:57:32 +0000 (11:57 +0100)]
Fix issues with tilde in inputpath

Fixes #11699

4 years agoRe-fix #11146 with recent LaTeX
Juergen Spitzmueller [Wed, 20 Nov 2019 10:48:18 +0000 (11:48 +0100)]
Re-fix #11146 with recent LaTeX

4 years agoBeamer loads amsmath
Juergen Spitzmueller [Wed, 20 Nov 2019 08:38:16 +0000 (09:38 +0100)]
Beamer loads amsmath

4 years agoFix crash in selection manager
Juergen Spitzmueller [Tue, 19 Nov 2019 12:47:32 +0000 (13:47 +0100)]
Fix crash in selection manager

Patch by Patrick De Visschere

4 years agoUpdate text file
Juergen Spitzmueller [Tue, 19 Nov 2019 12:38:36 +0000 (13:38 +0100)]
Update text file

Use float alignment rather than par alignment

4 years agoHandle paragraph direction switch in captions (with polyglossia/bidi)
Juergen Spitzmueller [Tue, 19 Nov 2019 12:37:44 +0000 (13:37 +0100)]
Handle paragraph direction switch in captions (with polyglossia/bidi)

4 years agoctest update.
Günter Milde [Wed, 13 Nov 2019 16:34:57 +0000 (17:34 +0100)]
ctest update.

Debian stable ships now TL18, we don't need to care for older TL versions.

Make CJK-ko documentation more robust (failed with non-TeX fonts and XeTeX,
if LatinModern is not installed system-wide).

The test sample for LyX bug 3059 triggers an error only with
"fontencoding auto-legacy" and can be safely ignored with non-TeX fonts.

4 years agoAlways use local font switches in table cells.
Juergen Spitzmueller [Sun, 17 Nov 2019 10:07:18 +0000 (11:07 +0100)]
Always use local font switches in table cells.

4 years agoThese languages are now also supported by polyglossia
Juergen Spitzmueller [Sun, 17 Nov 2019 07:08:33 +0000 (08:08 +0100)]
These languages are now also supported by polyglossia

Afrikaans, Belarusian, Bosnian, and Georgian

4 years agoAdd a setBuffer method to InsetArgumentProxy
Jean-Marc Lasgouttes [Fri, 15 Nov 2019 19:43:00 +0000 (20:43 +0100)]
Add a setBuffer method to InsetArgumentProxy

This is needed to set the buffer of default values of optional arguments.

Fixes bug #11695.

4 years agoConsider shorthand in biblatex cite display
Juergen Spitzmueller [Tue, 12 Nov 2019 12:52:05 +0000 (13:52 +0100)]
Consider shorthand in biblatex cite display

Fixes #11696

4 years agoCmake build: Remove warnings about deprecated policy CMP0069
Kornel Benko [Sat, 9 Nov 2019 15:56:16 +0000 (16:56 +0100)]
Cmake build: Remove warnings about deprecated policy CMP0069

Deprecated since cmake version 3.16
(Now explicitly enable/disable interprocedural optimization
if supported and not debugging)

4 years agoctests: update supported-languages tests.
Kornel Benko [Fri, 8 Nov 2019 09:57:42 +0000 (10:57 +0100)]
ctests: update supported-languages tests.

polyglossia changes in TL19 makes some tests
pass with lualatex again

4 years agoSupport C++98 again (gcc 4.8).
Pavel Sanda [Wed, 6 Nov 2019 14:54:27 +0000 (15:54 +0100)]
Support C++98 again (gcc 4.8).

4 years agoConstify and un-constify
Jean-Marc Lasgouttes [Wed, 6 Nov 2019 09:36:21 +0000 (10:36 +0100)]
Constify and un-constify

4 years agoFix typo (thanks to Salvatore Falco for the fix).
José Matos [Mon, 4 Nov 2019 12:12:23 +0000 (12:12 +0000)]
Fix typo (thanks to Salvatore Falco for the fix).

4 years agoit.po: resolve shortcuts conflict
Enrico Forestieri [Sat, 2 Nov 2019 17:19:02 +0000 (18:19 +0100)]
it.po: resolve shortcuts conflict

4 years agoUpdate it.po
Enrico Forestieri [Sat, 2 Nov 2019 15:21:15 +0000 (16:21 +0100)]
Update it.po

4 years agoAnother comment to languages
Juergen Spitzmueller [Fri, 1 Nov 2019 10:58:58 +0000 (11:58 +0100)]
Another comment to languages

4 years agoComments on soon-to-be supported polyglossia languages
Juergen Spitzmueller [Fri, 1 Nov 2019 08:23:58 +0000 (09:23 +0100)]
Comments on soon-to-be supported polyglossia languages

4 years agoSome languages supported by polyglossia nowadays
Juergen Spitzmueller [Fri, 1 Nov 2019 06:04:04 +0000 (07:04 +0100)]
Some languages supported by polyglossia nowadays

4 years agohe.po: update from Guy
Juergen Spitzmueller [Wed, 30 Oct 2019 08:22:49 +0000 (09:22 +0100)]
he.po: update from Guy

4 years agoUpdate sk.po
Kornel Benko [Sun, 27 Oct 2019 09:04:27 +0000 (10:04 +0100)]
Update sk.po

4 years agoAmend 464d6262: Forgot these
Jean-Marc Lasgouttes [Sat, 26 Oct 2019 22:17:01 +0000 (00:17 +0200)]
Amend 464d6262: Forgot these

4 years agoRemove some useless expressions
Jean-Marc Lasgouttes [Sat, 26 Oct 2019 22:09:05 +0000 (00:09 +0200)]
Remove some useless expressions

Spotted by cppcheck

4 years agoSimplify boolean expressions
Jean-Marc Lasgouttes [Sat, 26 Oct 2019 22:08:02 +0000 (00:08 +0200)]
Simplify boolean expressions

Spottd by cppcheck.

4 years agoDo not use same name for members and arguments
Jean-Marc Lasgouttes [Sat, 26 Oct 2019 22:06:54 +0000 (00:06 +0200)]
Do not use same name for members and arguments

Spotted by cppcheck.

4 years agoUse unsigned values for enum
Jean-Marc Lasgouttes [Sat, 26 Oct 2019 22:03:55 +0000 (00:03 +0200)]
Use unsigned values for enum

Otherwise 1 << 31 overflows.

Spotted by cppcheck.

4 years agoImprove tooltip of "Save as Document Defaults"
Scott Kostyshak [Sat, 26 Oct 2019 18:45:33 +0000 (14:45 -0400)]
Improve tooltip of "Save as Document Defaults"

The new message is shorter and also specifies that these defaults
are for new documents.

4 years agoUpdate sk.po
Kornel Benko [Sat, 26 Oct 2019 09:17:57 +0000 (11:17 +0200)]
Update sk.po

4 years agode.po
Juergen Spitzmueller [Sat, 26 Oct 2019 07:26:05 +0000 (09:26 +0200)]
de.po

4 years agoPolish warning
Juergen Spitzmueller [Sat, 26 Oct 2019 07:10:40 +0000 (09:10 +0200)]
Polish warning

4 years agoValidate if graphics path is encodable
Juergen Spitzmueller [Sat, 26 Oct 2019 06:33:51 +0000 (08:33 +0200)]
Validate if graphics path is encodable

Fixes #11688

4 years agoMark insets with invalid buffer() in red in devel-mode.
Jean-Marc Lasgouttes [Mon, 21 Oct 2019 14:45:03 +0000 (16:45 +0200)]
Mark insets with invalid buffer() in red in devel-mode.

We tend to have insets which buffer() member is invalid. To help
debugging, this commit paints their background in red when devel-mode
is on.

To this end, a new method develMode() is added to the Painter class.

With this commit, it is easy to see that macro template do not have a
proper buffer set!

4 years agoBe careful before using buffer parameters in colAlign
Jean-Marc Lasgouttes [Sun, 20 Oct 2019 18:50:23 +0000 (20:50 +0200)]
Be careful before using buffer parameters in colAlign

Make InsetGrid::colAlign a normal method and make it check whether
buffer is valid before using it. This avoids crashes as we have seen
in 2.3.3 (see e.g. #11686).

There is still an assertion so that failure is noticeable before release.

4 years agoWin installer: fix registry issue
Uwe Stöhr [Sun, 20 Oct 2019 21:26:08 +0000 (23:26 +0200)]
Win installer: fix registry issue

- when installing LyX 2.x.z over a previous 2.x.y installation a registry key was not deleted
- also fix some hardcoded occurrences of "lyx"

4 years agoINSTALL.Win32: add missing info
Uwe Stöhr [Sun, 20 Oct 2019 21:24:01 +0000 (23:24 +0200)]
INSTALL.Win32: add missing info

4 years agobuild5-2017.bat: add new script to compile using MSVC 2017
Uwe Stöhr [Sun, 20 Oct 2019 21:11:17 +0000 (23:11 +0200)]
build5-2017.bat: add new script to compile using MSVC 2017

4 years agoINSTALL.Win32: complete overhaul
Uwe Stöhr [Sun, 20 Oct 2019 21:08:07 +0000 (23:08 +0200)]
INSTALL.Win32: complete overhaul

- based on MSVC 2017

4 years agoar.po: fix wrong translations
Uwe Stöhr [Sun, 20 Oct 2019 19:41:56 +0000 (21:41 +0200)]
ar.po: fix wrong translations

- found by the compiler
- 2.3.x branch is not affected

4 years agoSet buffer when expanding macro
Jean-Marc Lasgouttes [Sun, 20 Oct 2019 10:54:59 +0000 (12:54 +0200)]
Set buffer when expanding macro

This avoids a crash in InsetMathSplit which uses the buffer() value.

Fixes bug #11686.

4 years agoKeep last file positions in last-use ordering
Jean-Marc Lasgouttes [Sun, 20 Oct 2019 09:47:04 +0000 (11:47 +0200)]
Keep last file positions in last-use ordering

Using a map would sort the elements in alphabetic ordering, which
means that when the number of elements is larger than 100, the wrong
elements get pruned.

This commit uses a list instead. Searching an item needs linear time,
but this should not be a problem for a list with less than 100
elements.

Fixes bug #10310.

4 years agoRemove MIME type from HTML table format.
Richard Kimberly Heck [Sat, 12 Oct 2019 18:04:54 +0000 (14:04 -0400)]
Remove MIME type from HTML table format.

I did not realize when I added this that it would mean that ALL
files detected as text/html would be handled this way.

Should fix #11087. But it is the right thing to do anyway.

4 years agoMore updates from Yuriy
Richard Kimberly Heck [Thu, 10 Oct 2019 21:42:55 +0000 (17:42 -0400)]
More updates from Yuriy

4 years agotypo
Jean-Marc Lasgouttes [Mon, 7 Oct 2019 13:30:33 +0000 (15:30 +0200)]
typo

4 years agoRevert "typo"
Jean-Marc Lasgouttes [Mon, 7 Oct 2019 13:29:59 +0000 (15:29 +0200)]
Revert "typo"

An unrelated change slipped in.

This reverts commit 3b642cd0edee1d8e954a3e8ef568d13fd15ab3b4.

4 years agotypo
Jean-Marc Lasgouttes [Mon, 7 Oct 2019 13:10:52 +0000 (15:10 +0200)]
typo

4 years agoFix bad caret position with horizontal scrolling
Jean-Marc Lasgouttes [Mon, 7 Oct 2019 10:31:20 +0000 (12:31 +0200)]
Fix bad caret position with horizontal scrolling

Horizontal scrolling used to be taken into account when updating caret
geometry. This is wrong since it may have changed when time comes to
draw the caret. This leads to a situation where the first apparition
of the caret is at a wrong place.

Now the extra horizontal offset is used at drawing time.

Fixes bug #11603.

4 years agoFix bug 11667
Enrico Forestieri [Sat, 28 Sep 2019 14:08:06 +0000 (16:08 +0200)]
Fix bug 11667

When automatic command termination was added to texstream it was
forgotten to reset its status after a math inset.

4 years agoAnother Yuriy update
Juergen Spitzmueller [Thu, 26 Sep 2019 14:53:20 +0000 (16:53 +0200)]
Another Yuriy update

4 years agoru/Tutorial.lyx: update by Yuriy
Juergen Spitzmueller [Wed, 25 Sep 2019 15:19:51 +0000 (17:19 +0200)]
ru/Tutorial.lyx: update by Yuriy

4 years agoru.po: update from Yuriy
Juergen Spitzmueller [Wed, 25 Sep 2019 15:19:22 +0000 (17:19 +0200)]
ru.po: update from Yuriy

4 years agoPass some variables as reference
Jean-Marc Lasgouttes [Tue, 17 Sep 2019 21:22:35 +0000 (23:22 +0200)]
Pass some variables as reference

Spotted by cppcheck.

4 years agoMake some constructors explicit
Jean-Marc Lasgouttes [Tue, 17 Sep 2019 21:06:18 +0000 (23:06 +0200)]
Make some constructors explicit

Spotted by cppcheck.

4 years agoFix cut-n-paste error
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 22:46:55 +0000 (00:46 +0200)]
Fix cut-n-paste error

Spotted by cppcheck.

4 years agoMany small code cleanups suggested by cppcheck
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 22:43:35 +0000 (00:43 +0200)]
Many small code cleanups suggested by cppcheck

4 years agoRemove unused private members.
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 22:15:28 +0000 (00:15 +0200)]
Remove unused private members.

Spotted by cppcheck.

4 years agoGet rid of useless affectation
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 22:03:56 +0000 (00:03 +0200)]
Get rid of useless affectation

Spotted by cppcheck.

4 years agoMark constructors with only one parameter as explicit
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 22:01:48 +0000 (00:01 +0200)]
Mark constructors with only one parameter as explicit

Spotted by cppcheck

4 years agoClarify calculation precedence for '&' and '?'
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 21:57:57 +0000 (23:57 +0200)]
Clarify calculation precedence for '&' and '?'

Spotted by cppcheck

4 years agoMark constructors with only one parameter as explicit
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 21:56:17 +0000 (23:56 +0200)]
Mark constructors with only one parameter as explicit

Spotted by cppcheck

4 years agoMake code more obvious
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 21:31:32 +0000 (23:31 +0200)]
Make code more obvious

- use propoer parenthesis
- do not store in variable something we do not use

Spotted by cppcheck.

4 years agoAvoid useless test
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 21:30:29 +0000 (23:30 +0200)]
Avoid useless test

Spotted by cppcheck

4 years agoPass variable by reference
Jean-Marc Lasgouttes [Sun, 15 Sep 2019 21:29:47 +0000 (23:29 +0200)]
Pass variable by reference

Spotted by cppcheck

4 years agoVarious fixes suggested by cppcheck
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 20:36:53 +0000 (22:36 +0200)]
Various fixes suggested by cppcheck

Rename local variables the hide other ones: get_binary_path, find_python_binary

Use unsigned int for conversion from hex using sscanf().

FileName::checksum(), parsecmd (SystemCall): use explcit values rather
than variable which value is known.

4 years agoForgot to test aspell and hunspell support
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 16:59:11 +0000 (18:59 +0200)]
Forgot to test aspell and hunspell support

4 years agoUse const &
Richard Kimberly Heck [Fri, 13 Sep 2019 15:49:29 +0000 (11:49 -0400)]
Use const &

4 years agoFollow some of the performance advice from cppcheck
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 14:23:49 +0000 (16:23 +0200)]
Follow some of the performance advice from cppcheck

Most of that is changing string to string const &.

4 years agoFix bug #11619.
Richard Kimberly Heck [Thu, 12 Sep 2019 02:13:58 +0000 (22:13 -0400)]
Fix bug #11619.

4 years agoFix nullptr warnings
Richard Kimberly Heck [Thu, 12 Sep 2019 02:13:25 +0000 (22:13 -0400)]
Fix nullptr warnings

4 years agoMinor renaming for clarity.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:54:51 +0000 (20:54 -0400)]
Minor renaming for clarity.

4 years agoFix bug #11636.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:54:42 +0000 (20:54 -0400)]
Fix bug #11636.

Directories are created when files are copied, so we do not need
to do it prospectively here.

4 years agoRevert last two commits, which we pushed accidentally.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:46:33 +0000 (20:46 -0400)]
Revert last two commits, which we pushed accidentally.

4 years agoWhoops, forgot this part
Richard Kimberly Heck [Thu, 12 Sep 2019 00:30:31 +0000 (20:30 -0400)]
Whoops, forgot this part

4 years agoConstify, largely for debugging purposes
Richard Kimberly Heck [Thu, 12 Sep 2019 00:29:58 +0000 (20:29 -0400)]
Constify, largely for debugging purposes

4 years agoConstify
Richard Kimberly Heck [Wed, 11 Sep 2019 23:39:03 +0000 (19:39 -0400)]
Constify

4 years agoEnable dissolve in undefined Flex inset context menu
Jean-Marc Lasgouttes [Wed, 11 Sep 2019 13:49:50 +0000 (15:49 +0200)]
Enable dissolve in undefined Flex inset context menu

This is a hackish special case, so I had to add a hack...

Fixes bug #8650.

4 years agoReset layout when inserting an inset over full paragraph(s)
Jean-Marc Lasgouttes [Wed, 4 Sep 2019 14:13:22 +0000 (16:13 +0200)]
Reset layout when inserting an inset over full paragraph(s)

1/ When inserting an inset over a selection, it makes sense if the
selection covers a complete or several paragraphs to reset the layout of
the paragraph that contains the inset to plain layout. In general the
inner inset will have the needed layout information and it does not
make sense to keep this information outside.

However, when the inset forces plain layout, it does not make sense to
do that and the outer layout is preserved.

Some code that duplicates what is done in pasteSelectionHelper is also
removed.

2/ Similarly, when dissolving an inset, do not reset the layout of the
first paragraph if the inset was alone in its own paragraph.

Note that this does not work as intended when change tracking is enabled.

Fixes bugs #10266 and #10369.

4 years agoAllow to hide formats from menus
Juergen Spitzmueller [Wed, 11 Sep 2019 08:29:50 +0000 (10:29 +0200)]
Allow to hide formats from menus

Fixes: #11657
4 years agoru/Tutorial.lyx: update by Yuriy
Juergen Spitzmueller [Wed, 11 Sep 2019 08:22:01 +0000 (10:22 +0200)]
ru/Tutorial.lyx: update by Yuriy

4 years agoUserGuide: some typos fixed by Yuriy
Juergen Spitzmueller [Wed, 11 Sep 2019 08:21:15 +0000 (10:21 +0200)]
UserGuide: some typos fixed by Yuriy

4 years agoGive error if undefined citations with Biblatex
Scott Kostyshak [Tue, 10 Sep 2019 14:43:11 +0000 (10:43 -0400)]
Give error if undefined citations with Biblatex

This commit catches situations when one key in a multi-key citation
is not defined. This commit causes an error to be given, but the
name of the key that is undefined is not provided in the error
dialog.

This commit is consistent with bf99ece7.

For more information, and possible follow-up discussion (e.g., on
putting the key in the error dialog), see the following ML thread:

https://www.mail-archive.com/search?l=mid&q=20190908165644.qnz6xu5bm5eqiko6%40boogie

4 years ago#6961 correct the big-endian conversion of UInt32
Patrick de Visschere [Sun, 8 Sep 2019 09:11:00 +0000 (11:11 +0200)]
#6961 correct the big-endian conversion of UInt32

This is a patch from Patrick de Visschere. Thanks.

4 years agoMinor update for supported-languages test.
Günter Milde [Thu, 5 Sep 2019 07:44:18 +0000 (09:44 +0200)]
Minor update for supported-languages test.

4 years agoMake preview skript Python-3 compatible.
Günter Milde [Wed, 4 Sep 2019 20:18:03 +0000 (22:18 +0200)]
Make preview skript Python-3 compatible.

4 years agoReset directory after os.chdir
Jean-Marc Lasgouttes [Wed, 4 Sep 2019 14:50:07 +0000 (16:50 +0200)]
Reset directory after os.chdir

Related to bug #10454

4 years agoPort gnuplot2pdf.py to Python 3
Scott Kostyshak [Fri, 30 Aug 2019 00:48:34 +0000 (20:48 -0400)]
Port gnuplot2pdf.py to Python 3

Instead of wait(), use communicate(), as mentioned here:

  https://docs.python.org/3/library/subprocess.html

Otherwise, the process seems to hang as cautioned in the above URL.

Also, use byte strings.

4 years agoctests: update supported-languages tests.
Günter Milde [Tue, 3 Sep 2019 20:54:05 +0000 (22:54 +0200)]
ctests: update supported-languages tests.

Simplify user preamble.

Use common test document for Xe- and LuaTeX with polyglossia
and special one for languages only supported by XeTeX.

Update tagging patterns and comments.

4 years agoObs. APA: fix missing citations
Scott Kostyshak [Tue, 3 Sep 2019 02:22:20 +0000 (22:22 -0400)]
Obs. APA: fix missing citations

The document now compiles and the ctests pass.

4 years agoFix origin path of three obsolete docs
Scott Kostyshak [Tue, 3 Sep 2019 02:18:25 +0000 (22:18 -0400)]
Fix origin path of three obsolete docs

4 years agoctests: invert a test failing due to babel bug
Scott Kostyshak [Tue, 3 Sep 2019 00:46:05 +0000 (20:46 -0400)]
ctests: invert a test failing due to babel bug

This test fails with an updated TL, although it passes on some older
systems.

4 years agoUpdate test document for supported languages.
Günter Milde [Mon, 2 Sep 2019 14:07:10 +0000 (16:07 +0200)]
Update test document for supported languages.

4 years agolyx2lyx: Fix revert_new_languages
Juergen Spitzmueller [Sat, 31 Aug 2019 09:20:10 +0000 (11:20 +0200)]
lyx2lyx: Fix revert_new_languages

4 years agoru.po: Update from Yuriy
Juergen Spitzmueller [Sat, 31 Aug 2019 08:40:57 +0000 (10:40 +0200)]
ru.po: Update from Yuriy