]> git.lyx.org Git - lyx.git/log
lyx.git
5 years agoFix left/right border UI when toggling formal
Juergen Spitzmueller [Mon, 1 Apr 2019 07:26:09 +0000 (09:26 +0200)]
Fix left/right border UI when toggling formal

Fixes: #9835
(cherry picked from commit 00de6c4be7db826e0035a412b0e19ffe940a5a44)

5 years agoFix booktabs bottom line with multirows
Juergen Spitzmueller [Mon, 1 Apr 2019 03:43:32 +0000 (05:43 +0200)]
Fix booktabs bottom line with multirows

Fixes: #11445
(cherry picked from commit 819c9c164579bb11322238258ca71f5aa2621705)

5 years agoCmake build: Removed some cmake warnings
Kornel Benko [Tue, 26 Mar 2019 09:00:35 +0000 (10:00 +0100)]
Cmake build: Removed some cmake warnings

5 years agoThis has not been updated in my build yet.
Richard Kimberly Heck [Tue, 26 Mar 2019 02:59:40 +0000 (22:59 -0400)]
This has not been updated in my build yet.

(cherry picked from commit 95c665e607b05ec815bc6ee79621cda84029f43f)

5 years agoWin installer: fix bug on init
Uwe Stöhr [Tue, 26 Mar 2019 01:34:54 +0000 (02:34 +0100)]
Win installer: fix bug on init

- also remove unused code and some updates

5 years ago Update shortcuts in fr.po
jpc [Mon, 25 Mar 2019 15:31:29 +0000 (16:31 +0100)]
     Update shortcuts in fr.po

5 years ago Solve shortcut conflict in fr.po
jpc [Mon, 25 Mar 2019 08:57:55 +0000 (09:57 +0100)]
    Solve shortcut conflict in fr.po

5 years agoFix bug #11526
Enrico Forestieri [Sun, 24 Mar 2019 16:28:01 +0000 (17:28 +0100)]
Fix bug #11526

Correctly categorize a textmode symbol in mathed.

(cherry picked from commit c2af2cfd94dc3ff83b0e8cfaef4bfaf8768b6d08)

5 years agoUpdate sk.po
Kornel Benko [Sun, 24 Mar 2019 11:47:45 +0000 (12:47 +0100)]
Update sk.po

5 years agode.po
Juergen Spitzmueller [Sat, 23 Mar 2019 07:17:59 +0000 (08:17 +0100)]
de.po

5 years agobackport forgotten accelerators
Pavel Sanda [Sat, 23 Mar 2019 06:56:21 +0000 (07:56 +0100)]
backport forgotten accelerators

5 years ago* cs.po
Pavel Sanda [Fri, 22 Mar 2019 21:27:23 +0000 (22:27 +0100)]
* cs.po

5 years agoinstaller: re-sync with master 2.3.3
Uwe Stöhr [Fri, 22 Mar 2019 00:19:48 +0000 (01:19 +0100)]
installer: re-sync with master

backport all recent fixes from master

5 years agoCache the value of GuiFontMetrics::lbearing().
Jean-Marc Lasgouttes [Wed, 20 Mar 2019 09:56:16 +0000 (10:56 +0100)]
Cache the value of GuiFontMetrics::lbearing().

This seems to be necessary on windows, where math editing can get very
slow. Note that other methods like rbearing already use a cache.

In the future all these caches for single characters shall be unified.

(cherry picked from commit d3979e798cd9c85041bb5e6158002384a8cddb8c)

5 years agoPlace the depth bar correctly in full screen mode
Jean-Marc Lasgouttes [Tue, 11 Sep 2018 14:45:48 +0000 (16:45 +0200)]
Place the depth bar correctly in full screen mode

In full screen mode, it is possible to restrict the text width. In
this case, the paint bar should not be painted outside of this
restricted area.

Fixes bug #11286.

(cherry picked from commit 7485225cc6f26c9e03d3674f4f361b431074fa6e)

5 years agoAdd tabular-features set-inner-lines and fix set-all-lines behavior
Juergen Spitzmueller [Fri, 28 Dec 2018 09:11:42 +0000 (10:11 +0100)]
Add tabular-features set-inner-lines and fix set-all-lines behavior

Patch by Daniel Ramöller (racoon)

Fixes: #11382
(cherry picked from commit cb84f752f21bb4cf4bd9ed6999df0353aba2b57e)

5 years agoFix bug #11490
Enrico Forestieri [Tue, 19 Feb 2019 18:51:11 +0000 (19:51 +0100)]
Fix bug #11490

Correctly add the branch name suffix when the stem
of the filename contains a dot.

(cherry picked from commit c3b950483565ca53265a4105a4946585f8b59e24)

5 years agoFix bug #4269 and avoid crash with gzipped file
Enrico Forestieri [Sat, 5 Jan 2019 18:17:37 +0000 (19:17 +0100)]
Fix bug #4269 and avoid crash with gzipped file

Call gunzip with quoted filenames as they may contain spaces or
other special characters.

In computing the length of the extension, the code does not account
for the prefix "unzipped_", which is added when the zipped filename
does not have one of the extensions "gz", "z", "Z", or "svgz", and
thus the used index is out of bounds. See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207360.html

(cherry picked from commit 69726b832b4ed1859d5c9e753c4437c98f5f2966)
(cherry picked from commit 7296e0e6ba8bcd343fb3cdb78c8590fd0864d469)

5 years agoFix bug #4269
Enrico Forestieri [Sat, 29 Dec 2018 19:11:56 +0000 (20:11 +0100)]
Fix bug #4269

Call gunzip with quoted filenames as they may contain spaces or
other special characters.

(cherry picked from commit 69726b832b4ed1859d5c9e753c4437c98f5f2966)

5 years ago* cs.po
Pavel Sanda [Mon, 18 Mar 2019 21:22:44 +0000 (22:22 +0100)]
* cs.po

5 years agoDo not force LTR with nameref and non-TeX fonts
Juergen Spitzmueller [Fri, 15 Mar 2019 10:23:53 +0000 (11:23 +0100)]
Do not force LTR with nameref and non-TeX fonts

Fixes: #11518
(cherry picked from commit f0282ddff4ecfa3dc33eac2a2dbd9e0bf45b28a2)

5 years agoFix regression concerning collapsing insets after search.
Richard Kimberly Heck [Fri, 15 Mar 2019 00:28:01 +0000 (20:28 -0400)]
Fix regression concerning collapsing insets after search.

To reproduce: Do a search for text in a footnote (say) that is
currently closed. Click inside the now open footnote. It will close
by itself.

We need to know whether we can go into the inset, not whether we can
edit once we're there.

(cherry picked from commit 4484cc775126e969d83f036561cfeb21d6751e79)

5 years agoMore exceptions to percent encoding
Juergen Spitzmueller [Sun, 10 Mar 2019 15:37:31 +0000 (16:37 +0100)]
More exceptions to percent encoding

See #11511

(cherry picked from commit 3c83f01f1b8b76b63a8f4892bb7635817ed1e12c)

5 years agoDo not percent-encode & in urls
Juergen Spitzmueller [Sun, 10 Mar 2019 12:23:36 +0000 (13:23 +0100)]
Do not percent-encode & in urls

This is query syntax

Fixes: #11511
follows up [c2db448ff5/lyxgit]

(cherry picked from commit 936cddc715d3a49ffbde42bba0cb19120701bc57)

5 years ago Update fr.po
jpc [Sun, 10 Mar 2019 08:21:10 +0000 (09:21 +0100)]
  Update fr.po

5 years ago Update fr.po
jpc [Thu, 27 Dec 2018 17:26:08 +0000 (18:26 +0100)]
     Update fr.po

5 years ago* cs.po
Pavel Sanda [Sat, 2 Mar 2019 18:15:33 +0000 (19:15 +0100)]
* cs.po

5 years agoUpdate screen as needed when preferences are changed
Jean-Marc Lasgouttes [Tue, 26 Feb 2019 15:37:41 +0000 (16:37 +0100)]
Update screen as needed when preferences are changed

This commit removes the adhoc code in GuiPrefs and moves it to LyXRC,
so that it triggers in every preference change.

The code has also been updated to trigger on more variables, e.g.
font_*_foundry.

Note that the actual function that are called have not been changed
(addPreviews and LFUN_SCREEN_FONT_UPDATE), although there are doubts
that they behave as needed (see FIXMEs).

Fixes bug #11498.

(cherry picked from commit 954531f247adee029c12713634a81717f87a2bcf)

5 years agoremerge cs.po
Pavel Sanda [Tue, 26 Feb 2019 13:19:57 +0000 (14:19 +0100)]
remerge cs.po

5 years ago* cs.po
Pavel Sanda [Tue, 26 Feb 2019 13:18:47 +0000 (14:18 +0100)]
* cs.po

5 years agoCmake export tests: Use pre-compiled regular expressions
Kornel Benko [Tue, 26 Feb 2019 10:26:20 +0000 (11:26 +0100)]
Cmake export tests: Use pre-compiled regular expressions

Essentially ammend db5fb78c, consisting of cherry-pick 597dcbb5
(and c9e62dec, but this is not important here)

5 years agoFix bad error message (bug 11486).
Richard Kimberly Heck [Tue, 26 Feb 2019 02:56:40 +0000 (21:56 -0500)]
Fix bad error message (bug 11486).

(cherry picked from commit 5b959033d2167ffbef7eaf70d561eb23fcde803c)

5 years agode.po
Juergen Spitzmueller [Sat, 23 Feb 2019 16:58:02 +0000 (17:58 +0100)]
de.po

5 years agoAmend 5f45b3ed9c851f0
Juergen Spitzmueller [Thu, 9 Aug 2018 15:23:05 +0000 (17:23 +0200)]
Amend 5f45b3ed9c851f0

(cherry picked from commit 806f7422633631669f6272e03c9e8dc79d1d299e)

5 years ago* cs.po
Pavel Sanda [Fri, 22 Feb 2019 15:52:17 +0000 (16:52 +0100)]
* cs.po

5 years agoIntro.lyx: remove a "short title"
Scott Kostyshak [Fri, 15 Feb 2019 17:12:10 +0000 (12:12 -0500)]
Intro.lyx: remove a "short title"

This short title removed a spaced, and when taking a look we decided
that the advantages of removing it (simplicity and consistency)
outweigh the benefits of having a shorter entry in the table of
contents and PDF bookmarks.

(cherry picked from commit 9c748a04702a979786f39bb7fa367e3945b51ae3)

5 years agoImprove DEPM when change tracking is on
Jean-Marc Lasgouttes [Tue, 29 Jan 2019 10:20:22 +0000 (11:20 +0100)]
Improve DEPM when change tracking is on

A typical problem when change tracking is on is:
1/ insert a new space between two words (as if you want to insert a new one)
2/ move the cursor
3/ see how one has one inserted and one deleted space, whereas one would expect nothing.

The problem is fixed in a general way in master, but here we propose
a simpler one, where the spaces that we keep are the ones at the end
of the sequence of spaces.

Part of #11412.

5 years agoFix position of cursor when DEPM is used in change tracking mode
Jean-Marc Lasgouttes [Tue, 29 Jan 2019 09:55:12 +0000 (10:55 +0100)]
Fix position of cursor when DEPM is used in change tracking mode

When change tracking is active, it may happen that spaces are marked
as deleted instead of being removed. Therefore it is better to measure
the change of size of the paragraph to know how to offset the cursor.

Moreover, it the cursor was strictly after the start of the sequence
of spaces, we ensure that it is still the case.

This commit is _not_ a backport from master, which has diverged.

Part of bug #11412/

5 years agoFix DEPM at end of paragraph
Jean-Marc Lasgouttes [Wed, 30 Jan 2019 22:50:53 +0000 (23:50 +0100)]
Fix DEPM at end of paragraph

Remove special handling of spaces at end of paragraph. Now they are
handled like interword spaces by both DEPM methods.

Fix off-by-one error in loop when testing for end of paragraph.

Part of bug #11412.

(adapted from commit c00234503f9e07795723222e6095c022e45ad1dd)

5 years agoFix IPA icons
Juergen Spitzmueller [Mon, 11 Feb 2019 15:46:13 +0000 (16:46 +0100)]
Fix IPA icons

Convert text to path and fix the most salient drawing issues.

5 years agoFix Visual C++ warning
Jean-Marc Lasgouttes [Mon, 11 Feb 2019 09:43:59 +0000 (10:43 +0100)]
Fix Visual C++ warning

(cherry picked from commit 2215f4c2b43f9c282f35984182dcd958c8a27ced)

5 years agoFix algorithm for finding localized files
Jean-Marc Lasgouttes [Wed, 6 Feb 2019 14:49:53 +0000 (15:49 +0100)]
Fix algorithm for finding localized files

Now we search in priority with the GUI language, and then the
language(s) specified in the LANGUAGES environment variable.
Preoviously, the GUI language would only be considered when
LANGUAGES was not set (which was a bug).

Take this opportunity to remove old compatibility code from 2007.

(cherry picked from commit e203bf519b4dd69f17a2f8cabb6607d2f73dce71)

5 years agoFix bug #11484
Enrico Forestieri [Mon, 4 Feb 2019 09:49:02 +0000 (10:49 +0100)]
Fix bug #11484

When splitting parameters at commas, take into account that
commas inside curly braces are not parameter separators.

(cherry picked from commit 6316b9b7aed7d67c585f8c17cce5669f8cbb5d65)

5 years ago? and = must not be percent-encoded in hrefs
Juergen Spitzmueller [Tue, 29 Jan 2019 13:49:04 +0000 (14:49 +0100)]
? and = must not be percent-encoded in hrefs

Fixes: #11482
(cherry picked from commit c2db448ff558f53ebfd93920d7d40f37d9a4211c)

5 years agoUpdate it.po
Enrico Forestieri [Sun, 27 Jan 2019 10:58:18 +0000 (11:58 +0100)]
Update it.po

5 years agode.po
Juergen Spitzmueller [Fri, 25 Jan 2019 14:02:00 +0000 (15:02 +0100)]
de.po

5 years ago* cs.po
Pavel Sanda [Wed, 23 Jan 2019 22:11:36 +0000 (23:11 +0100)]
* cs.po

5 years agoFix for #11294: Wrong description for Change bars module
Daniel Ramoeller [Mon, 31 Dec 2018 11:14:46 +0000 (12:14 +0100)]
Fix for #11294: Wrong description for Change bars module

(cherry picked from commit f71723c8f333819bcaa5180fe98d9cd4c1491ba8)

5 years agoRename emergency file when it is kept.
Richard Kimberly Heck [Wed, 16 Jan 2019 16:13:53 +0000 (11:13 -0500)]
Rename emergency file when it is kept.

Otherwise, we will ask about it again next time, when the file
may have changed. Also, if we crash again, we'll over-write that
file, which we may not want to do.

See bug #11464.

(cherry picked from commit b804e8851c33b68caa5057e809a12333741dfe2e)

5 years agoAllow to type a space in front of another one
Jean-Marc Lasgouttes [Mon, 14 Jan 2019 15:37:10 +0000 (16:37 +0100)]
Allow to type a space in front of another one

This is a follow-up to 714b731e. This fixes the issue when the cursor
is in front of a space
  abc| def
and one inserts another space (to start a word). DEPM would eat one
space and produce
  abc |def
instead of
  abc | def

Additionally, fix the same_par boolean, wheich did not take the cell
index into account.

Related to ticket #11412.

(cherry picked from commit 7848d3c90c0837e8e8549db37bf4bc5cd7e7dad1)

5 years agoRemove PYTHONPATH from the environment on Windows
Enrico Forestieri [Sat, 12 Jan 2019 17:37:41 +0000 (18:37 +0100)]
Remove PYTHONPATH from the environment on Windows

This make sure to use the the modules distributed with LyX,
avoiding reconfigure failures.

(cherry picked from commit ad0c9a548bf9e0c5038f2731aef766e0d0e8c266)

5 years agoforce some symbols as macros with utf8-cjk
Juergen Spitzmueller [Sat, 12 Jan 2019 16:40:55 +0000 (17:40 +0100)]
force some symbols as macros with utf8-cjk

cherry-picked from
4786c59a8c2665a7
81af82d1e82d42f5
c2d20645be092c77

5 years agoCJKutf8 is only to be used with the dedicated utf8-cjk encoding
Juergen Spitzmueller [Sat, 12 Jan 2019 16:40:19 +0000 (17:40 +0100)]
CJKutf8 is only to be used with the dedicated utf8-cjk encoding

cherry-picked from 9982651fd684577e977d85d0bc54bea65d8c3ff1

5 years agoAdd support for U+2693 (ANCHOR)
Juergen Spitzmueller [Fri, 11 Jan 2019 15:40:41 +0000 (16:40 +0100)]
Add support for U+2693 (ANCHOR)

Fixes: #10706
(cherry picked from commit ead498f0a642b27cb9a63f76d146ba776fc7f7b6)

5 years agoReplace environment variables in PATH prefix
Enrico Forestieri [Fri, 11 Jan 2019 17:15:40 +0000 (18:15 +0100)]
Replace environment variables in PATH prefix

The PATH prefix modified through the GUI was set without
replacing embedded environment variables. This might have
caused problems on Windows with external python installations.

(cherry picked from commit 472bdf59109b4188df3bbad18ac3aa60670962aa)

5 years agoDo not consider deleted labels in ambiguity check
Juergen Spitzmueller [Wed, 9 Jan 2019 08:06:53 +0000 (09:06 +0100)]
Do not consider deleted labels in ambiguity check

This adds a new (boolean) parameter "active" to the label cache, where
we track whether a label is deleted in ct mode (the same could be done,
if wanted, for labels in notes and inactive branches).

Deleted (inactive) labels are neither considered in the uniqueness check
nor added to the outliner. This also means that undeleted references to
deleted labels are now (correctly) marked as BROKEN.

Cherry-picked from:

    [3ae6bff538/lyxgit]
    [a550a613e8/lyxgit]
    [c457ea90e/lyxgit]
    [5cfd25697/lyxgit]
    [5afacb144/lyxgit]
    [54366c38e/lyxgit]

Fixes: #6563
5 years agoWhen using polyglossia (bidi), paragraph directions don't need to be swapped
Juergen Spitzmueller [Mon, 7 Jan 2019 12:54:23 +0000 (13:54 +0100)]
When using polyglossia (bidi), paragraph directions don't need to be swapped

Bidi does that.

Fixes: #11399
(cherry picked from commit 9d20bc4e989c57dc5498f231d890a0550375a753)

5 years agostatus.23x: correct typo from 822e0133
Scott Kostyshak [Mon, 7 Jan 2019 17:15:16 +0000 (12:15 -0500)]
status.23x: correct typo from 822e0133

Thanks to José.

5 years agoko splash.lyx: specify "mj" as CJK font
Scott Kostyshak [Sun, 6 Jan 2019 19:38:54 +0000 (14:38 -0500)]
ko splash.lyx: specify "mj" as CJK font

Now (thanks to d193cd05), the Korean splash.lyx compiles
out-of-the-box with pdflatex.

Thanks to Jürgen.

(cherry picked from commit 0cfaf406c5f55b4b6a56f9f322748988b1778ec4)

5 years agoEnable error-free compilation of ko splash.lyx with xetex and lautex
Kornel Benko [Mon, 7 Jan 2019 07:37:41 +0000 (08:37 +0100)]
Enable error-free compilation of ko splash.lyx with xetex and lautex

This amends somehow 9238004c. Since the system font NanumMyeongjo
and the "mj" spec as CJK latex font are related, this change
seems appropriate.

(cherry picked from commit f092208c89500abf9ac3f56e9fbcb169ae1d4c41)

5 years agoDon't output CJK environment with non-TeX fonts
Juergen Spitzmueller [Sun, 6 Jan 2019 15:40:36 +0000 (16:40 +0100)]
Don't output CJK environment with non-TeX fonts

This amends d193cd05a8e3b.

(cherry picked from commit c9dd349bee71d9a3952f36246f684ead9ca43c2b)

5 years agoProperly implement CJKutf8
Juergen Spitzmueller [Sun, 6 Jan 2019 13:36:11 +0000 (14:36 +0100)]
Properly implement CJKutf8

If we use that, the document actually needs to be in utf8 encoding, and
the CJK environment needs to account for it.

Candidate for stable.

(cherry picked from commit d193cd05a8e3be92e34a873416a16c2a474b61cb)

5 years agoFix display of gather in lefteqn mode
Jean-Marc Lasgouttes [Thu, 4 Oct 2018 14:05:46 +0000 (16:05 +0200)]
Fix display of gather in lefteqn mode

The column is flushed when the display of equations is flushed.

Not sure what to do with RtL languages.

Fixes bug 11324.

(cherry picked from commit 7cb0284a3ffa469c4c99184725f5a3e0b4056508)

5 years agoAdd license info for inkscape start script
Stephan Witt [Sun, 6 Jan 2019 08:28:11 +0000 (09:28 +0100)]
Add license info for inkscape start script

(cherry picked from commit a4d409b194a2ba38eb2e8c1fd7af0dbf62f59cb7)

Add status log for 2.3.x

5 years agoCorrect converter configuration for inkscape on Mac
Stephan Witt [Sat, 5 Jan 2019 23:22:21 +0000 (00:22 +0100)]
Correct converter configuration for inkscape on Mac

On Mac the inkscape binary is started by a wrapper script. This script changes the
working directory internally and fails to process files with relative path names.
The previous attempt to solve it was to pass the file names with absolute names
by prepending them with the $$p variable (representing the directory name of the files).
This broke the on screen conversion (used for SVGZ to PNG e.g. in the users guide)
because here the $$p variable is undefined.

Now the wrapper script of LyX which is used to locate the Inkscape.app bundle converts
the relative path names into absolute names and the $$p variable is removed from the
converter definitions for inkscape again.

(cherry picked from commit caa1dd2aeed97330e05c0e96ae7e5bb929b0866d)

5 years agoRemove now unused routine.
Richard Kimberly Heck [Sun, 6 Jan 2019 22:50:14 +0000 (17:50 -0500)]
Remove now unused routine.

(cherry picked from commit d6b4db1a4f85b15090d15afda0b9ec6c23d28e4c)

5 years agoUse combo box data rather than looking up info from InsetRef.
Richard Kimberly Heck [Sun, 6 Jan 2019 22:45:08 +0000 (17:45 -0500)]
Use combo box data rather than looking up info from InsetRef.

(cherry picked from commit c4fdab69937d627cba1185a978e4b2d041c22eb5)

5 years agoRemove debugging code.
Richard Kimberly Heck [Sun, 6 Jan 2019 18:00:21 +0000 (13:00 -0500)]
Remove debugging code.

(cherry picked from commit b91e2b99986c0f957ba27eeba74b5ae0460d73bc)

5 years agoFix problem caused by re-ordering of menu at 5f6332bf4.
Richard Kimberly Heck [Sun, 6 Jan 2019 17:51:02 +0000 (12:51 -0500)]
Fix problem caused by re-ordering of menu at 5f6332bf4.

This broke the activation and de-activation of plural, capitalize,
etc. I guess that tells us how much those get used....

(cherry picked from commit 9b3f9cc687c5294e13555c6596184dd0e6a5d6cf)

5 years agoBibliography.lyx: minor cosmetic changes
Scott Kostyshak [Fri, 4 Jan 2019 03:27:22 +0000 (22:27 -0500)]
Bibliography.lyx: minor cosmetic changes

- Add note explaining this file should not be compiled on its own.
- Remove custom preamble.
- Remove setting of master document.

(cherry picked from commit 3ac2dd8e6c07ce115d9ddcfa3c289b3f5d0998ed)
(cherry picked from commit 91d8aea8d3e2a96ffbbbfbcbd63dfc07ace51a5c)
(cherry picked from commit 6e815d3ebaf829f18768dc0363c6a450b9483dac)

5 years agoUpdate it.po
Enrico Forestieri [Sat, 5 Jan 2019 20:57:12 +0000 (21:57 +0100)]
Update it.po

5 years agoAllow toggling (no)limits only after mathop symbol
Jean-Marc Lasgouttes [Mon, 3 Sep 2018 15:49:54 +0000 (17:49 +0200)]
Allow toggling (no)limits only after mathop symbol

In particular, introduce the new InsetMathScript::allowLimits method
that checks for that and honor it in getStatus/ddoDispatch.

Do the same for (over|under)brace

(cherry picked from commit 7b7ed64a0e760eccad5fff7fa944b983d0bed025)
(cherry picked from commit 6cfd733dea70bf26c512dea8491f79f68cb512e6)

5 years agoforgot this
Jean-Marc Lasgouttes [Sat, 5 Jan 2019 14:04:51 +0000 (15:04 +0100)]
forgot this

5 years agoFix drawing of labels in insets
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 15:24:18 +0000 (16:24 +0100)]
Fix drawing of labels in insets

In many cases, the origin xo_ of insets was forgotten.

Also fix spacing between text and label in rtl

Fixes bug #11425.

(cherry picked from commit 5c1d65afee3a37d5befcf9eb55d8d50e1d8e4f13)
(cherry picked from commit 5fc035f99c42835da41d6eb6cf5a375382c06870)

5 years agoAvoid crash when using inset-select-all in tabular
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 12:57:13 +0000 (13:57 +0100)]
Avoid crash when using inset-select-all in tabular

When changing cell idx, it is important to set the pit to a reasonable
value.

(cherry picked from commit a69e01d0b47aebbdfc3139533fcb7f1d0c04f156)

5 years agoFix vertical offset of fonts like MinionPro
Jean-Marc Lasgouttes [Thu, 3 Jan 2019 11:14:27 +0000 (12:14 +0100)]
Fix vertical offset of fonts like MinionPro

For some reason, adding a LTR/RTL Override unicode character before a
MinionPro string increases the ascent of the line.

This creates vertical offset issues when painting if the ascent used
as reference is the one of the font. Use the QTextLine ascent instead
for better results.

This is a followup to 1bed76e2a.

Fixes (reopened) ticket #11284.
Fixes ticket #10532.
Fixes ticket #10767.

(cherry picked from commit d8498d4785282a6f42a69f56ebd46ac32e1d2f51)

5 years agoAlways update bibfiles cache with bibliography environment before opening citation...
Juergen Spitzmueller [Fri, 4 Jan 2019 12:01:03 +0000 (13:01 +0100)]
Always update bibfiles cache with bibliography environment before opening citation dialog

We need to do this unconditionally, since there is no (trivial and non-
awkward) way to update it when the bibliography paragraphs are modified.

Fixes: #4899
(cherry picked from commit 35534231d45426a842ccad0219fbffbdbda446a0)

5 years agoCmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts
Kornel Benko [Sat, 5 Jan 2019 07:34:00 +0000 (08:34 +0100)]
Cmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts

Amend eec3d1eb,7568571a
We are trying to check if the resulting file after lyx2lyx
is compilable, we have to ensure that copying the original file
to the test directory does not mangle use_non_tex_fonts-entry.

(cherry picked from commit c9e62dec53aee97fff6dffcb6d8ef84331ba5c30)

5 years agolyx2lyx tests: Use the temp-dir also for converted lyx files
Kornel Benko [Fri, 4 Jan 2019 04:21:07 +0000 (05:21 +0100)]
lyx2lyx tests: Use the temp-dir also for converted lyx files

Important if including data previously copied there.
Fixes test "export/doc/Additional_lyx22"

(cherry picked from commit 7568571a24e951df8f616a4e031be2b30857b2ed)

5 years agoFix bug #11432.
Richard Kimberly Heck [Fri, 4 Jan 2019 00:12:58 +0000 (19:12 -0500)]
Fix bug #11432.

Take account of Layout::free_spacing.

(cherry picked from commit 6135824f40c55e3a6156d477f7475473a8d5ee53)

5 years agoRemove premature (and bad) optimization
Jean-Marc Lasgouttes [Wed, 2 Jan 2019 17:36:02 +0000 (18:36 +0100)]
Remove premature (and bad) optimization

When blinking the caret, it looks like a cool idea to only update the
small rectangle containing the caret. Actually it is an awful idea, since
the paint event will paint some rows, and these rows will not be
properly painted outside of the small rectangle. Unfortunately, the
painter will skip those "painted" rows on next paint events.

This leads to painting errors that depend on the ordering of "real"
and "caret" paint events. This is the reason why they only appeared
with split screens.

Quote of the day: ``The real problem is that programmers have spent far
too much time worrying about efficiency in the wrong places and at the
wrong times; premature optimization is the root of all evil (or at
least most of it) in programming.''
-- Donald Knuth, The Art of Computer Programming.

Fixes bug #11354.

(cherry picked from commit fba9f5b9e884f0a988bd77992772eb4986eecdec)

5 years agoAdd override statements to please clang
Jean-Marc Lasgouttes [Wed, 2 Jan 2019 17:49:23 +0000 (18:49 +0100)]
Add override statements to please clang

Eventually, all overridden virtual methods should be marked properly.
Currently, clang only warns about those in classes that already use
override in at least one place (which was the case dor GuiApplication).

(cherry picked from commit c8f4b68423520378d02fe9f953d94759b862dc55)

5 years agolyx2lyx tests: Copy also original lyx files to temp dir
Kornel Benko [Thu, 3 Jan 2019 07:46:26 +0000 (08:46 +0100)]
lyx2lyx tests: Copy also original lyx files to temp dir

Necessary only if the lyx-file includes some data from
a relative path, nonetheless it happens in some of our tests.

5 years agoAmend 7e1ecb65, add Bibliography.lyx to the set of not tested subdocuments
Kornel Benko [Wed, 2 Jan 2019 15:35:18 +0000 (16:35 +0100)]
Amend 7e1ecb65, add Bibliography.lyx to the set of not tested subdocuments

5 years agoAmend [324b8287/lyxgit]
Enrico Forestieri [Wed, 2 Jan 2019 08:22:56 +0000 (09:22 +0100)]
Amend [324b8287/lyxgit]

Avoid a crash by checking that a cell is not empty before
accessing its content.

No status line is needed as this amends a previous commit.

5 years agoRemove *.bbl and friends when invalidating the bib info cache
Juergen Spitzmueller [Mon, 31 Dec 2018 08:46:08 +0000 (09:46 +0100)]
Remove *.bbl and friends when invalidating the bib info cache

This avoids errors when switching engines.

The fix is already in master. We forgot to backport.

5 years agoUnbreak citing from bibliography environment
Juergen Spitzmueller [Mon, 31 Dec 2018 08:43:39 +0000 (09:43 +0100)]
Unbreak citing from bibliography environment

We need to bail out here early since otherwise the cache is prematurely
set to valid even if it is invalid with the bibliography environment.
The following checks (for timestamps of bib files) are only targeted
at bib(la)tex.

The fix is already in master.

5 years agoAmend 031d1c86: Add support for aastex62
Kornel Benko [Sun, 30 Dec 2018 08:16:47 +0000 (09:16 +0100)]
Amend 031d1c86: Add support for aastex62

5 years agode.po
Juergen Spitzmueller [Sun, 30 Dec 2018 08:01:47 +0000 (09:01 +0100)]
de.po

5 years agoUpdate sk.po
Kornel Benko [Sat, 29 Dec 2018 18:58:45 +0000 (19:58 +0100)]
Update sk.po

5 years agoAdded aastex62 example an template files
Kornel Benko [Sat, 29 Dec 2018 18:52:45 +0000 (19:52 +0100)]
Added aastex62 example an template files

This is 2.3.x- adapted copy of the versions in master tree.

5 years ago* cs.po
Pavel Sanda [Sat, 29 Dec 2018 18:22:51 +0000 (19:22 +0100)]
* cs.po

5 years agoFix some parsing glitches in Autonest and IsAutonestedBy
Juergen Spitzmueller [Sat, 29 Dec 2018 12:36:39 +0000 (13:36 +0100)]
Fix some parsing glitches in Autonest and IsAutonestedBy

Layouts can have spaces, underlines (that must be read as spaces, and
be enquoted)

Candidate for stable

(cherry picked from commit da273a944f4b720b1da5fd737ededc2f2129e9bc)

5 years agoBeamer: autonest column in columns
Juergen Spitzmueller [Sat, 29 Dec 2018 12:36:13 +0000 (13:36 +0100)]
Beamer: autonest column in columns

Candidate for stable

(cherry picked from commit 012d9b088e1e2b8ba58a1f303081cb9aba526298)

5 years agoDo not auto-insert separator for keepempty layouts
Juergen Spitzmueller [Sat, 29 Dec 2018 12:35:39 +0000 (13:35 +0100)]
Do not auto-insert separator for keepempty layouts

Candidate for stable

(cherry picked from commit 59d73f52b8afa734c02db08b075c1cdaf25611c1)

5 years agode.po
Juergen Spitzmueller [Sat, 29 Dec 2018 17:22:58 +0000 (18:22 +0100)]
de.po

5 years agoHandle bibliography irritations in thesis template
Juergen Spitzmueller [Sat, 29 Dec 2018 14:05:08 +0000 (15:05 +0100)]
Handle bibliography irritations in thesis template

Outsource the bibliography to an own child, which is then also included
in the children's "Standalone" branch

Add some clarifying notes.

Fixes: #10748
(cherry picked from commit 12aaeb259fac8e41c9e729919ff719cf7ab096e0)

5 years agoFixup LocalLayout ui after [3847e0ef/lyxgit]
Juergen Spitzmueller [Sat, 29 Dec 2018 10:47:37 +0000 (11:47 +0100)]
Fixup LocalLayout ui after [3847e0ef/lyxgit]

(cherry picked from commit a67c541d6b329ed2db6906904c1e1dbadc49aa0a)

5 years agoBackport 33284ee5c.
Pavel Sanda [Sat, 29 Dec 2018 16:55:55 +0000 (17:55 +0100)]
Backport 33284ee5c.

5 years agoNew layout file for American Mathematical Monthly.
Richard Kimberly Heck [Sat, 29 Dec 2018 16:48:02 +0000 (11:48 -0500)]
New layout file for American Mathematical Monthly.

From John Perry. See bug #10803.