Commit Graph

36052 Commits

Author SHA1 Message Date
Uwe Stöhr
324a0679ee Win installer: update package list
these are the packages required to compile all LyX doc, examples and template files that are not yet installed by MiKTeX on a fresh installation.
2017-11-20 02:36:34 +01:00
Uwe Stöhr
01205cfafa Win installer: add file info to the installer executable file 2017-11-18 16:54:44 +01:00
Uwe Stöhr
f0aabdc987 Win installer: enable support for high DPI 2017-11-18 15:22:26 +01:00
Uwe Stöhr
dc52d7ab2a Win installer: backport the LaTeX package list 2017-11-18 14:36:41 +01:00
Uwe Stöhr
fd76441d97 Win installer: backport some updates 2017-11-13 21:24:33 +01:00
Juergen Spitzmueller
6ef5e10e66 InsetExternal: update renderer after preview status change
This fixes a crash when changing instant preview prefs while
document with previewed external inset is opened.

Fixes: #10785
(cherry picked from commit 0842e22f45)
2017-11-13 09:54:37 +01:00
Juergen Spitzmueller
9235d5299e Mark some intentional fall-throughs (in a way understandable to gcc)
This silences -Wimplicit-fallthrough warnings with gcc7.
2017-11-10 13:07:00 +01:00
Enrico Forestieri
3628ceec48 Fix #10778 (issue with CJK and language nesting)
When using CJK, don't try to close a language that was never
opened before, such as when it is the main language.
2017-11-08 08:44:00 +01:00
Uwe Stöhr
3887ffb24f Win installer: make it a real Unicode program 2017-11-07 02:17:46 +01:00
Uwe Stöhr
27f1f8a948 Win installer: translate 2 installer sections 2017-11-05 22:33:44 +01:00
Uwe Stöhr
f2eec0b981 Win installer: convert the translations to Unicode
- since NSIS 3 Unicode is allowed and even required
2017-11-05 21:17:48 +01:00
Uwe Stöhr
6030161ad9 Win installer: backport some recent changes 2017-11-05 20:54:36 +01:00
Juergen Spitzmueller
16fcce1f71 Enable OK/Apply buttons when resetting to class defaults.
(cherry picked from commit b851a349b6)
2017-11-01 18:07:56 +01:00
Uwe Stöhr
d158f78f87 Win installer: fix detection of 64bit Krita and 64bit JabRef
also update the changelog
2017-11-01 14:34:36 +01:00
Uwe Stöhr
bffb17112b Win installer: fix a MiKTeX package issue
since a few months MiKTeX's package manager required the option "--admin" when calling it with admin privileges

- also register the .lyx22 file extension to be opened with the future LyX 2.2.4
2017-10-31 22:18:06 +01:00
Juergen Spitzmueller
c323be70b4 de.po 2017-10-24 08:45:02 +02:00
Juergen Spitzmueller
9b3b20a0ac More accurate description of fixltx2e state.
(cherry picked from commit bd14639d1c)
2017-10-23 16:41:57 -04:00
Richard Heck
c6a16909e0 Status for last two commits. 2017-10-23 16:36:34 -04:00
jpc
95d6cfe364 Make math options loading automatic, see ticket 10661
(cherry picked from commit 95f60915a7)
2017-10-23 16:34:53 -04:00
jpc
c28a604f3d Add obsolescence warning in fixltx2e description (ticket 9361)
(cherry picked from commit d57935b33b)
2017-10-23 16:32:32 -04:00
Enrico Forestieri
054b7c68a4 Speed up exit time
Instantiating a single QSettings and using it for each ui element
can significantly shorten the time required to save the various
states at exit. The speed up can be better appreciated on *nix,
where the settings are saved on disk, rather than on Windows where
they are held in memory (in the registry).
2017-10-18 22:11:56 +02:00
Richard Heck
74dbfc1b1b Revert "Fix bug #8782."
This reverts commit de2a58d986.
2017-10-15 20:57:15 -04:00
Stephan Witt
f15b3827ea Address bugs #10285 and #10542.
Add sips as a fallback converter for Mac to provide preview of PDF graphics in LyX when pdftops is not installed.

(cherry picked from commit c592fb58bb)
2017-10-15 13:16:52 -04:00
Richard Heck
de2a58d986 Fix bug #8782.
We need to invalidate the BibTeX cache when undoing or redoing. I do
not like having to do it for every undo or redo. We should only have
to do it if we restored or deleted an InsetBibTeX. But there is no
way, so far as I can see, to do it that way. I tried.

(cherry picked from commit 02847641a8)
2017-10-15 12:16:34 -04:00
Enrico Forestieri
11d6816330 Backport fix for #9778.
From Enrico.
2017-10-15 12:15:52 -04:00
Uwe Stöhr
22ff59c9ca Win installer. update Qt
- Qt 5.6.3 uses a different path name scheme
- one DLL as removed in Qt 5.6.3
2017-10-15 16:41:50 +02:00
Stephan Witt
108deae543 This change solves dialog stacking problems on newer Mac OS X in combination with the OS provided file open dialog.
(cherry picked from commit 97dc585138)
(cherry picked from commit 1460e8fe6f)
2017-10-14 17:58:10 +02:00
Juergen Spitzmueller
5ba05b546b Do not error on missing ZWNJ (ligature break) characters.
Since TeXLive 2016, "fontspec" maps the ligature break command
\textcompwordmark to the ZWNJ character (U+200C).
This character is missing in many fonts (including the default: Latin
Modern) which leads to "Missing character" warnings in the XeTeX/LuaTeX
log file if a document using non-TeX fonts contains a ligature break.

LyX reports missing characters as error since fixing #9610.
In case of "invisible" characters, there is no data loss, in case of the
ZWNJ the functionality is kept: ligatures are prevented also if the ZWNJ
is missing in a font.

Therefore, a missing ZWNJ is now treated similar to missing characters
in "nullfont" (see [63f41711/lyxgit], bug #10394) and does not trigger
an error.

Fixes: #10727
(cherry picked from commit a40868510d)
2017-10-14 17:52:42 +02:00
Juergen Spitzmueller
cd626c2411 Fix PDF output of clipped graphics with recent graphics package
The previous redirection of the senseless option "bb" to "viewport" in
PDFLaTeX output has been removed in a recent graphics package update.

This breaks documents, since clipped graphics silently stop displaying.

This change restores the previous output by using "viewport" instaed of
"bb" for non-PS/DVI output, while leaving PS/DVI untouched (where "bb"
and "viewport" behave differently.

Fixes: #7910
2017-10-13 08:31:37 +02:00
Kornel Benko
10002fe436 Cmake build: Needed variable for creation of debian package
The variable CPACK_DEBIAN_PACKAGE_RELEASE has to be in the form
of "^[A-Za-z0-9.+~]+$". We will use the abbreviated commit revision for now.
Without this change cmake 3.10 emits error.

(cherry picked from commit 847c68960a)
2017-10-09 10:05:42 +02:00
Richard Heck
6d11663090 Reset cursor before beginning reload sequence.
(cherry picked from commit af381a2fb2)
2017-10-08 23:08:05 -04:00
Uwe Stöhr
8631fa68a5 Win installer: update to Python 2.7.14 for LyX 2.2.4 2017-10-01 23:21:38 +02:00
Juergen Spitzmueller
7b41d977ad Fix crash when closing master with children and grandchildren
In some cases, it is possible that the BufferPositionMap has
dangling pointers. We thus check whether the Buffer is loaded
before accessing it.

Fixes: #10766
(cherry picked from commit 4f50cbcfe4)
2017-09-28 09:24:58 +02:00
jpc
1d55d8cd25 Update status.ééx 2017-09-26 18:21:23 +02:00
jpc
a2fe1ec8b9 Shortcut conflicts removed in fr.po 2017-09-22 22:31:30 +02:00
Uwe Stöhr
ca999d76a1 Customization.lyx: fix a typo 2017-09-11 21:19:38 +02:00
Jean-Marc Lasgouttes
4db40b11af Use the proper buffer when recording undo
The code in InsetLabel::updateReferences code changes reference insets
in potentially several buffers. When recording undo, it is important
to use the right undo stack, otherwise crashes can ensue.

Once it is done, it is neccessary to create undo groups as needed.
This is done using UndoGroupHelper. This demonstrates a shortcoming of
UndoGroupHelper: if a buffer is encountered in two seperate
occasions, two undo groups will be created for this buffer. This is
not correct.

Fixes bug #10643.

(cherry picked from commit 4eb9b50dc6)
2017-09-03 18:35:37 +02:00
Jean-Marc Lasgouttes
8ff22de938 When a row is shortened, reset its flushed() attribute.
Fixes bug #10699.

(cherry picked from commit 59e2c40564)
2017-09-03 18:34:01 +02:00
Jean-Marc Lasgouttes
48904cc5a1 Fix computation of string width when using a QTextLayout
It was not a good idea to rely on QTextLine::naturalTextWidth() to
compute a string width. The correct method is horizontalAdvance().

Also round the value to the nearest pixel, since this is what
QFontMetrics::width() does.

By contrast with the code in 2.3.x/master, this code had to be adapted
for Qt < 4.7, where horizontalAdvance() is not defined and
naturalTextWidth() has to be used instead. The fix is thus only
effective starting from Qt 4.7.

Fixes bug #10700 (and maybe others).

(cherry picked from commit c874641e95)
2017-08-29 15:15:39 +02:00
Jean-Marc Lasgouttes
6b0509da0c Small update to README 2017-08-29 12:20:07 +02:00
Juergen Spitzmueller
86e54f6cc7 Babel option for Vietnamese is called "vietnamese"
The renaming happened in 2013. Contrary to what is stated in the
babel-vietnamese manual, option "vietnam" does not work anymore.

Also, the special care is not needed anymore, since language options
are not hardcoded anymore in babel.

Fixes: #10743
2017-08-13 18:43:26 +02:00
Juergen Spitzmueller
f1428488b1 Add missing break
As correctly pointed out by gcc7.
2017-08-13 09:32:51 +02:00
Uwe Stöhr
4cb45dfffe Win installer: check for a package that LyX uses for instant preview 2017-08-05 20:27:01 +02:00
Uwe Stöhr
8f476415ea status.22x: move crash fixes up
- also correct a bug number
2017-07-26 01:32:36 +02:00
Juergen Spitzmueller
5eda278c80 Properly import \newtheorem*
Fixes: #10622
2017-07-25 18:28:47 +02:00
Uwe Stöhr
ef5ff9f43e Win installer: prepare for a new 2.2.4 release 2017-07-25 00:33:04 +02:00
Jean-Marc Lasgouttes
e4aba6e17c When cleaning up before quitting, take care of exceptions
We do not want the cleanup work to be interrupted by a buffer exception.

Spotted by coverity. See bug #9979 for discussion.

(cherry picked from commit 0d565f7b35)
2017-07-17 10:49:50 +02:00
Jean-Marc Lasgouttes
311a40747e Remove test that is not needed.
We know that buf is not null at this point.

Spotted by coverity.
2017-07-17 10:39:09 +02:00
Juergen Spitzmueller
f61e88b7dd Update parent buffer as soon as a child has been released
This prevents dangling pointers that might crash LyX.

Fixes: #9979.
2017-07-17 10:34:58 +02:00
Jean-Marc Lasgouttes
e5105a0dce Do not use toobar menu as fallback context menu
This is a consequence of 060a9664, although it is not clear why. The
contextMenuEvent code of the workarea should not delegate context
menu when it cannot honor it.

Also fix a small memory leak.

Fixes bug #10616.

(cherry picked from commit ab81c23656)
2017-07-15 16:21:41 +02:00