]> git.lyx.org Git - lyx.git/log
lyx.git
6 years agoUpdate translations after addition of 2.3.x format. 2.2.x 2.2.4
Richard Heck [Sat, 17 Mar 2018 18:01:17 +0000 (14:01 -0400)]
Update translations after addition of 2.3.x format.

6 years agoRemerge strings.
Richard Heck [Sat, 17 Mar 2018 17:52:49 +0000 (13:52 -0400)]
Remerge strings.

6 years agoUpdate sk.po
Kornel Benko [Sat, 17 Mar 2018 16:45:28 +0000 (17:45 +0100)]
Update sk.po

6 years agoAdd format and converter for 2.3.x export.
Richard Heck [Sat, 17 Mar 2018 16:21:34 +0000 (12:21 -0400)]
Add format and converter for 2.3.x export.

6 years agoRemerge strings.
Richard Heck [Sat, 17 Mar 2018 16:14:35 +0000 (12:14 -0400)]
Remerge strings.

6 years agoCopy lyx2lyx files from 2.3.x.
Richard Heck [Sat, 17 Mar 2018 16:12:20 +0000 (12:12 -0400)]
Copy lyx2lyx files from 2.3.x.

Because of extensive changes in the support files, it seems to me
that we actually do need to copy over everything.

6 years agoStart preparations for 2.2.4.
Richard Heck [Sat, 17 Mar 2018 16:10:00 +0000 (12:10 -0400)]
Start preparations for 2.2.4.

6 years agoWin installer: prepare 2.2.4 release
Uwe Stöhr [Sun, 11 Mar 2018 13:36:40 +0000 (14:36 +0100)]
Win installer: prepare 2.2.4 release

6 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Sun, 11 Mar 2018 08:11:31 +0000 (09:11 +0100)]
Update tex2lyx tests

Fixes: #10800.
6 years agosyntax.default: add missing *
Juergen Spitzmueller [Fri, 9 Mar 2018 13:47:04 +0000 (14:47 +0100)]
syntax.default: add missing *

Fixes: #10501
(cherry picked from commit 23766fdd592b95ecfc33cb66e08976654de33182)

6 years ago Last update of fr.po before 2.2.4
jpc [Sun, 4 Mar 2018 21:16:00 +0000 (22:16 +0100)]
    Last update of fr.po before 2.2.4

6 years agostatus.22x: fix a typo
Uwe Stöhr [Sat, 3 Mar 2018 11:23:16 +0000 (12:23 +0100)]
status.22x: fix a typo

6 years agoconfigure.py: add quotes around path to python
Uwe Stöhr [Sat, 3 Mar 2018 11:19:28 +0000 (12:19 +0100)]
configure.py: add quotes around path to python

fixes bug #11053

6 years ago* status.22x
Pavel Sanda [Sat, 24 Feb 2018 00:30:20 +0000 (01:30 +0100)]
* status.22x

6 years ago* cs.po
Pavel Sanda [Sat, 24 Feb 2018 00:28:52 +0000 (01:28 +0100)]
* cs.po

6 years agostatus.22x: mention Arabic
Uwe Stöhr [Fri, 23 Feb 2018 21:35:13 +0000 (22:35 +0100)]
status.22x: mention Arabic

6 years agoar.po: backport translations from Hatim
Uwe Stöhr [Fri, 23 Feb 2018 21:34:21 +0000 (22:34 +0100)]
ar.po: backport translations from Hatim

6 years agoRemerge strings.
Richard Heck [Thu, 22 Feb 2018 19:51:32 +0000 (14:51 -0500)]
Remerge strings.

6 years agoKill macro mode when using LFUN_ESCAPE
Jean-Marc Lasgouttes [Tue, 20 Feb 2018 11:09:10 +0000 (12:09 +0100)]
Kill macro mode when using LFUN_ESCAPE

Add a `cancel' boolean to macroModeClose() that just removes all trace
of what has been entered instead of finalizing it.

When entering a macro in mathed, let LFUN_ESCAPE invoke
macroModeClose(true). The new semantics of LFUN_ESCAPE in mathed is
thus to abort the input of a macro name.

Fixes bug #9251.

(cherry picked from commit 9296344b9a26191a2092d175a51e357ecc35145d)

6 years agoLocalize items in view/update popup icons
Juergen Spitzmueller [Tue, 20 Feb 2018 15:42:01 +0000 (16:42 +0100)]
Localize items in view/update popup icons

Fixes: #11040
(cherry picked from commit 578cf77f6f0e88dadc1cdcc2d0bc145c1a40aad7)

6 years agoWin installer: forgot to update path to Qt
Uwe Stöhr [Sun, 18 Feb 2018 13:49:42 +0000 (14:49 +0100)]
Win installer: forgot to update path to Qt

6 years agoWin installer: MiKTeX has a new maintenance program
Uwe Stöhr [Sun, 18 Feb 2018 05:13:16 +0000 (06:13 +0100)]
Win installer: MiKTeX has a new maintenance program

- therefore the command line parameters changed
- all babel packages must be required
- use another default mirror that is hopefully not down 2 hours every day

6 years agoWin installer: fix installation of Arabic dictionaries.nsh
Uwe Stöhr [Sat, 17 Feb 2018 05:02:38 +0000 (06:02 +0100)]
Win installer: fix installation of Arabic dictionaries.nsh

- correct name of Arabic spell checker (fixes bug #11036)
- add Arabic thesaurus
- update sourceforge's mirror list
- update some dictionaries

6 years agotex2lyx: normalize bib and bst paths
Juergen Spitzmueller [Fri, 9 Feb 2018 12:23:50 +0000 (13:23 +0100)]
tex2lyx: normalize bib and bst paths

Fixes: #7637
(cherry picked from commit 3cc98a9bf6ed506d04b502863d6424d36cb778b5)

6 years agoReset cur.pit() when pasting into tables.
Juergen Spitzmueller [Thu, 8 Feb 2018 18:06:35 +0000 (19:06 +0100)]
Reset cur.pit() when pasting into tables.

The number of paragraphs can change here, so pit() can become invalid.

Fixes: #9983
(cherry picked from commit 6e4e0869006aa4c225162164aaa14a70d041facf)

6 years agoUpdate sk.po
Kornel Benko [Mon, 29 Jan 2018 05:44:56 +0000 (06:44 +0100)]
Update sk.po

6 years agoRemerge strings.
Richard Heck [Mon, 29 Jan 2018 05:04:38 +0000 (00:04 -0500)]
Remerge strings.

6 years agoUpdate it.po
Enrico Forestieri [Sun, 28 Jan 2018 14:14:31 +0000 (15:14 +0100)]
Update it.po

6 years agoUse proper localization chain for Box special width/height
Juergen Spitzmueller [Sat, 27 Jan 2018 11:26:01 +0000 (12:26 +0100)]
Use proper localization chain for Box special width/height

Fixes: #11000
(cherry picked from commit e2160ec960de2f48e5b61dfab339902426d075f8)

6 years agoMake GUI string translatable
Juergen Spitzmueller [Sat, 27 Jan 2018 09:57:33 +0000 (10:57 +0100)]
Make GUI string translatable

Part of #10999

(cherry picked from commit 26755a015e1fbeccd96848ea873c5c4dc6de0aa8)

6 years agoFix repaint of unselected paragraph label
Jean-Marc Lasgouttes [Mon, 15 Jan 2018 16:23:48 +0000 (17:23 +0100)]
Fix repaint of unselected paragraph label

This works around a TextMetrics issue where Row::beg/end_margin_sel
are sometimes not reset correctly when there is no selection on the
row.

In master a fix for this problem has been done at 654cded1. Here we
prefer a much simpler work around that fixes the symptom.

Fixes bug #10972.

(cherry picked from commit 9bec4b8a0ababb6b18c41df946fcf7e893100d94)

6 years agoEmbeddedObjects.lyx: fix a typo spotted by Paul Rubin
Uwe Stöhr [Tue, 16 Jan 2018 03:42:08 +0000 (04:42 +0100)]
EmbeddedObjects.lyx: fix a typo spotted by Paul Rubin

fixes #10965

6 years agoWin installer: fix a typo and updates
Uwe Stöhr [Sun, 14 Jan 2018 21:17:43 +0000 (22:17 +0100)]
Win installer: fix a typo and updates

6 years agoCustomization: correct some color names.
Juergen Spitzmueller [Sat, 6 Jan 2018 08:07:26 +0000 (09:07 +0100)]
Customization: correct some color names.

#10141

6 years agoFix bug #10951.
Richard Heck [Tue, 2 Jan 2018 03:18:52 +0000 (22:18 -0500)]
Fix bug #10951.

The Buffer member for the remembered definition_ was not being set.

(cherry picked from commit f130f7713fae326daa05795a5bf4761d33aee649)

6 years agoCheck whether a class is known before loading it
Jean-Marc Lasgouttes [Tue, 25 Jul 2017 09:51:49 +0000 (11:51 +0200)]
Check whether a class is known before loading it

Fixes bug #10719.

(cherry picked from commit 15a87dd3a86235848983022ecb7927675a62d4e3)

6 years agoHandle properly undo groups in embedded work areas
Jean-Marc Lasgouttes [Wed, 13 Dec 2017 09:38:47 +0000 (10:38 +0100)]
Handle properly undo groups in embedded work areas

When a buffer is in an embedded work area (adv. find&replace), it is
not found by BufferList:::exists(), and therefore the undo group
created in GuiApplication::dispatch and in the handling of
LFUN_COMMAND_SEQUENCE will not be closed. Crashes can ensue, as
described in Ubuntu bug:
https://bugs.launchpad.net/bugs/1737429

The solution is to introduce BufferList::isInternal and act on it.

Fixes bug #10847.

(cherry picked from commit 8b107f0490e61b4390e925f08d21661ef50d6f49)

6 years agoWin installer: improvements from Yuriy
Uwe Stöhr [Tue, 12 Dec 2017 01:24:09 +0000 (02:24 +0100)]
Win installer: improvements from Yuriy

6 years agoWin installer: settings for a 2.2.4 installer
Uwe Stöhr [Sat, 9 Dec 2017 18:08:27 +0000 (19:08 +0100)]
Win installer: settings for a 2.2.4 installer

6 years agoWin installer: new Russian translations thanks to Yuriy
Uwe Stöhr [Sat, 9 Dec 2017 18:02:10 +0000 (19:02 +0100)]
Win installer: new Russian translations thanks to Yuriy

6 years agoWin installer: code review
Uwe Stöhr [Wed, 6 Dec 2017 14:36:01 +0000 (15:36 +0100)]
Win installer: code review

- use https in URLs
- remove some unused code
- use variables if possible

6 years agoWin installer: release a new version
Uwe Stöhr [Wed, 6 Dec 2017 02:09:51 +0000 (03:09 +0100)]
Win installer: release a new version

6 years agochanges-merge.svgz: backport fro from commit 7aa45eb0
Uwe Stöhr [Tue, 5 Dec 2017 19:42:26 +0000 (20:42 +0100)]
changes-merge.svgz: backport fro from commit 7aa45eb0

6 years ago A couple of editions in the French Intro manual
jpc [Mon, 27 Nov 2017 17:25:27 +0000 (18:25 +0100)]
            A couple of editions in the French Intro manual

6 years agoUpdate Makefile after change of filename.
Richard Heck [Thu, 23 Nov 2017 16:29:26 +0000 (11:29 -0500)]
Update Makefile after change of filename.

6 years agoRenaming due to windows ignoring capitalization
Kornel Benko [Wed, 22 Nov 2017 10:16:29 +0000 (11:16 +0100)]
Renaming due to windows ignoring capitalization

6 years agoWin installer: check that the Win installer is not already running
Uwe Stöhr [Tue, 21 Nov 2017 23:33:47 +0000 (00:33 +0100)]
Win installer: check that the Win installer is not already running

6 years agoUkrainian Footnote.png: update image
Uwe Stöhr [Tue, 21 Nov 2017 23:24:40 +0000 (00:24 +0100)]
Ukrainian Footnote.png: update image

6 years agoWin installer: add two more required packages and correct a word
Uwe Stöhr [Tue, 21 Nov 2017 00:10:16 +0000 (01:10 +0100)]
Win installer: add two more required packages and correct a word

- vntex is necessary for Vietnamese, greek-fontenc for Greek
- use correct term for Farsi

6 years agoWin installer: backport some of the recent changes
Uwe Stöhr [Mon, 20 Nov 2017 20:19:12 +0000 (21:19 +0100)]
Win installer: backport some of the recent changes

6 years agoWin installer: update package list
Uwe Stöhr [Mon, 20 Nov 2017 01:36:34 +0000 (02:36 +0100)]
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.

6 years agoWin installer: add file info to the installer executable file
Uwe Stöhr [Sat, 18 Nov 2017 15:54:44 +0000 (16:54 +0100)]
Win installer: add file info to the installer executable file

6 years agoWin installer: enable support for high DPI
Uwe Stöhr [Sat, 18 Nov 2017 14:22:26 +0000 (15:22 +0100)]
Win installer: enable support for high DPI

6 years agoWin installer: backport the LaTeX package list
Uwe Stöhr [Sat, 18 Nov 2017 13:36:41 +0000 (14:36 +0100)]
Win installer: backport the LaTeX package list

6 years agoWin installer: backport some updates
Uwe Stöhr [Mon, 13 Nov 2017 20:24:33 +0000 (21:24 +0100)]
Win installer: backport some updates

6 years agoInsetExternal: update renderer after preview status change
Juergen Spitzmueller [Sun, 12 Nov 2017 13:44:18 +0000 (14:44 +0100)]
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 0842e22f4551e84dbf24259c65994c760fc22925)

6 years agoMark some intentional fall-throughs (in a way understandable to gcc)
Juergen Spitzmueller [Fri, 10 Nov 2017 12:07:00 +0000 (13:07 +0100)]
Mark some intentional fall-throughs (in a way understandable to gcc)

This silences -Wimplicit-fallthrough warnings with gcc7.

6 years agoFix #10778 (issue with CJK and language nesting)
Enrico Forestieri [Wed, 8 Nov 2017 07:44:00 +0000 (08:44 +0100)]
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.

6 years agoWin installer: make it a real Unicode program
Uwe Stöhr [Tue, 7 Nov 2017 01:17:46 +0000 (02:17 +0100)]
Win installer: make it a real Unicode program

6 years agoWin installer: translate 2 installer sections
Uwe Stöhr [Sun, 5 Nov 2017 21:33:44 +0000 (22:33 +0100)]
Win installer: translate 2 installer sections

6 years agoWin installer: convert the translations to Unicode
Uwe Stöhr [Sun, 5 Nov 2017 20:17:48 +0000 (21:17 +0100)]
Win installer: convert the translations to Unicode

- since NSIS 3 Unicode is allowed and even required

6 years agoWin installer: backport some recent changes
Uwe Stöhr [Sun, 5 Nov 2017 19:54:36 +0000 (20:54 +0100)]
Win installer: backport some recent changes

6 years agoEnable OK/Apply buttons when resetting to class defaults.
Juergen Spitzmueller [Wed, 1 Nov 2017 11:03:54 +0000 (12:03 +0100)]
Enable OK/Apply buttons when resetting to class defaults.

(cherry picked from commit b851a349b6f303824f329a5dc854827f66828764)

6 years agoWin installer: fix detection of 64bit Krita and 64bit JabRef
Uwe Stöhr [Wed, 1 Nov 2017 13:34:36 +0000 (14:34 +0100)]
Win installer: fix detection of 64bit Krita and 64bit JabRef

also update the changelog

6 years agoWin installer: fix a MiKTeX package issue
Uwe Stöhr [Tue, 31 Oct 2017 21:18:06 +0000 (22:18 +0100)]
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

6 years agode.po
Juergen Spitzmueller [Tue, 24 Oct 2017 06:45:02 +0000 (08:45 +0200)]
de.po

6 years agoMore accurate description of fixltx2e state.
Juergen Spitzmueller [Mon, 23 Oct 2017 11:49:03 +0000 (13:49 +0200)]
More accurate description of fixltx2e state.

(cherry picked from commit bd14639d1ce7be9de94f427152cbd7d8e06269a7)

6 years agoStatus for last two commits.
Richard Heck [Mon, 23 Oct 2017 20:36:34 +0000 (16:36 -0400)]
Status for last two commits.

6 years agoMake math options loading automatic, see ticket 10661
jpc [Mon, 23 Oct 2017 07:18:56 +0000 (09:18 +0200)]
Make math options loading automatic, see ticket 10661

(cherry picked from commit 95f60915a73219e1fcf549b292b17f5307f94078)

6 years agoAdd obsolescence warning in fixltx2e description (ticket 9361)
jpc [Mon, 23 Oct 2017 07:51:08 +0000 (09:51 +0200)]
Add obsolescence warning in fixltx2e description (ticket 9361)

(cherry picked from commit d57935b33bc813ffd8e3b49c53676d66d7ee0c4a)

6 years agoSpeed up exit time
Enrico Forestieri [Wed, 18 Oct 2017 20:11:56 +0000 (22:11 +0200)]
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).

6 years agoRevert "Fix bug #8782."
Richard Heck [Mon, 16 Oct 2017 00:57:15 +0000 (20:57 -0400)]
Revert "Fix bug #8782."

This reverts commit de2a58d986739bccb83615e8515d715ebf1b5821.

6 years agoAddress bugs #10285 and #10542.
Stephan Witt [Sat, 13 May 2017 18:05:39 +0000 (20:05 +0200)]
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 c592fb58bb71d750815a909d4180f6e4f3ebf796)

6 years agoFix bug #8782.
Richard Heck [Thu, 30 Jun 2016 18:53:19 +0000 (14:53 -0400)]
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 02847641a8b97a57d1866120bb446427e0bda7a4)

6 years agoBackport fix for #9778.
Enrico Forestieri [Sun, 15 Oct 2017 16:12:34 +0000 (12:12 -0400)]
Backport fix for #9778.

From Enrico.

6 years agoWin installer. update Qt
Uwe Stöhr [Sun, 15 Oct 2017 14:41:50 +0000 (16:41 +0200)]
Win installer. update Qt

- Qt 5.6.3 uses a different path name scheme
- one DLL as removed in Qt 5.6.3

6 years agoThis change solves dialog stacking problems on newer Mac OS X in combination with...
Stephan Witt [Tue, 12 Sep 2017 09:05:42 +0000 (11:05 +0200)]
This change solves dialog stacking problems on newer Mac OS X in combination with the OS provided file open dialog.

(cherry picked from commit 97dc58513884bb89b6a015c2c7dc61c8bb3f7dfe)
(cherry picked from commit 1460e8fe6f695720fe67cd0493701956da6d923e)

6 years agoDo not error on missing ZWNJ (ligature break) characters.
Juergen Spitzmueller [Sun, 23 Jul 2017 16:41:06 +0000 (18:41 +0200)]
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 a40868510d36ccdcf3c431cdee17f8204d4b258a)

6 years agoFix PDF output of clipped graphics with recent graphics package
Juergen Spitzmueller [Thu, 12 Oct 2017 13:38:59 +0000 (15:38 +0200)]
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
6 years agoCmake build: Needed variable for creation of debian package
Kornel Benko [Sat, 7 Oct 2017 08:47:17 +0000 (10:47 +0200)]
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 847c68960a8227c344ec6c0d66034d012bb9de5c)

6 years agoReset cursor before beginning reload sequence.
Richard Heck [Tue, 3 Oct 2017 21:21:21 +0000 (17:21 -0400)]
Reset cursor before beginning reload sequence.

(cherry picked from commit af381a2fb25df71b43668fa46ba9b6395f266751)

6 years agoWin installer: update to Python 2.7.14 for LyX 2.2.4
Uwe Stöhr [Sun, 1 Oct 2017 21:21:38 +0000 (23:21 +0200)]
Win installer: update to Python 2.7.14 for LyX 2.2.4

6 years agoFix crash when closing master with children and grandchildren
Juergen Spitzmueller [Thu, 28 Sep 2017 07:06:33 +0000 (09:06 +0200)]
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 4f50cbcfe405a840459be8682fd4c7521b235798)

6 years ago Update status.ééx
jpc [Tue, 26 Sep 2017 16:21:23 +0000 (18:21 +0200)]
  Update status.ééx

6 years ago Shortcut conflicts removed in fr.po
jpc [Fri, 22 Sep 2017 20:31:30 +0000 (22:31 +0200)]
    Shortcut conflicts removed in fr.po

6 years agoCustomization.lyx: fix a typo
Uwe Stöhr [Mon, 11 Sep 2017 19:19:38 +0000 (21:19 +0200)]
Customization.lyx: fix a typo

6 years agoUse the proper buffer when recording undo
Jean-Marc Lasgouttes [Tue, 4 Jul 2017 14:34:34 +0000 (16:34 +0200)]
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 4eb9b50dc642a3532d8126a93571696b3db57640)

6 years agoWhen a row is shortened, reset its flushed() attribute.
Jean-Marc Lasgouttes [Thu, 31 Aug 2017 12:52:30 +0000 (14:52 +0200)]
When a row is shortened, reset its flushed() attribute.

Fixes bug #10699.

(cherry picked from commit 59e2c40564f441044d38f2082b8a038cc093c932)

6 years agoFix computation of string width when using a QTextLayout
Jean-Marc Lasgouttes [Mon, 28 Aug 2017 10:05:35 +0000 (12:05 +0200)]
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 c874641e95b763a6d4691fb12fba893580f3018a)

6 years agoSmall update to README
Jean-Marc Lasgouttes [Tue, 29 Aug 2017 10:15:25 +0000 (12:15 +0200)]
Small update to README

6 years agoBabel option for Vietnamese is called "vietnamese"
Juergen Spitzmueller [Sun, 13 Aug 2017 09:47:21 +0000 (11:47 +0200)]
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
6 years agoAdd missing break
Juergen Spitzmueller [Sat, 12 Aug 2017 07:55:06 +0000 (09:55 +0200)]
Add missing break

As correctly pointed out by gcc7.

6 years agoWin installer: check for a package that LyX uses for instant preview
Uwe Stöhr [Sat, 5 Aug 2017 18:27:01 +0000 (20:27 +0200)]
Win installer: check for a package that LyX uses for instant preview

6 years agostatus.22x: move crash fixes up
Uwe Stöhr [Tue, 25 Jul 2017 23:32:36 +0000 (01:32 +0200)]
status.22x: move crash fixes up

- also correct a bug number

6 years agoProperly import \newtheorem*
Juergen Spitzmueller [Sun, 23 Jul 2017 11:19:59 +0000 (13:19 +0200)]
Properly import \newtheorem*

Fixes: #10622
6 years agoWin installer: prepare for a new 2.2.4 release
Uwe Stöhr [Mon, 24 Jul 2017 22:33:04 +0000 (00:33 +0200)]
Win installer: prepare for a new 2.2.4 release

6 years agoWhen cleaning up before quitting, take care of exceptions
Jean-Marc Lasgouttes [Tue, 11 Jul 2017 13:28:06 +0000 (15:28 +0200)]
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 0d565f7b350b4dfecfa9337b4b80173282d191ab)

6 years agoRemove test that is not needed.
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 12:14:43 +0000 (14:14 +0200)]
Remove test that is not needed.

We know that buf is not null at this point.

Spotted by coverity.

6 years agoUpdate parent buffer as soon as a child has been released
Juergen Spitzmueller [Sat, 17 Jun 2017 07:43:01 +0000 (09:43 +0200)]
Update parent buffer as soon as a child has been released

This prevents dangling pointers that might crash LyX.

Fixes: #9979.
6 years agoDo not use toobar menu as fallback context menu
Jean-Marc Lasgouttes [Wed, 5 Jul 2017 10:28:26 +0000 (12:28 +0200)]
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 ab81c23656b59aa14c41b8acc45f0f3e410ed785)