]> git.lyx.org Git - lyx.git/log
lyx.git
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)

6 years agoLoad color before polyglossia also in preview snippets
Juergen Spitzmueller [Tue, 11 Jul 2017 08:03:03 +0000 (10:03 +0200)]
Load color before polyglossia also in preview snippets

This fixes an error in the preview generation with polyglossia
and bidi that prevents snippet generation (and consequently also
"math as image" xhtml output).

Fixes: #10716.
6 years agoFix bug #10546
Enrico Forestieri [Sun, 9 Jul 2017 21:31:33 +0000 (23:31 +0200)]
Fix bug #10546

A labeled equation is also numbered.

6 years agoAvoid crash when selecting long text
Jean-Marc Lasgouttes [Mon, 19 Jun 2017 10:23:17 +0000 (12:23 +0200)]
Avoid crash when selecting long text

In some (not yet understood) situations, the paragraph metrics cache
is empty in generateSyntheticMouseEvent(). We just avoid a crash in
this case, but there is probably an underlying problem that deserves
being fixed.

Fixes bug #10324.

(cherry picked from commit 4efb129ccba448edfb851741089d70b0bfd054a3)

6 years agoCatch xdvipdfmx driver error (that breaks XeTeX compilation).
Juergen Spitzmueller [Sun, 25 Jun 2017 08:29:19 +0000 (10:29 +0200)]
Catch xdvipdfmx driver error (that breaks XeTeX compilation).

This prevents an assertion due to an unrecognized error.

Fixes: #10076.
6 years agonatbibapa.module: Do not overwrite preamble.
Juergen Spitzmueller [Sun, 2 Jul 2017 08:54:39 +0000 (10:54 +0200)]
natbibapa.module: Do not overwrite preamble.

Also add author information.

6 years agoFixup the fixup 4499680b: use editable()/isActive()
Jean-Marc Lasgouttes [Fri, 23 Jun 2017 18:32:32 +0000 (20:32 +0200)]
Fixup the fixup 4499680b: use editable()/isActive()

While 1c07c0dc was too strong and broke mathed, 4499680b is too
lenient and can accept insets (mathed/CommandInset, InsetInfo) that
have a positive nargs() but are not editable (because they encapsulate
something).

Therefore the best solution for now is to use editable() in text and
isActive() in mathed, until those two things are merged.

Part of #10667.

(cherry picked from commit 13c3c1485b68980c51658cef8fadf804982d75ee)

6 years agoFix bug #10705
Enrico Forestieri [Mon, 26 Jun 2017 21:10:30 +0000 (23:10 +0200)]
Fix bug #10705

Seemingly, std::regex does not account for newlines in the string.

7 years agoFixup 1c07c0dc: editable() is unusable in mathed
Jean-Marc Lasgouttes [Tue, 20 Jun 2017 07:41:48 +0000 (09:41 +0200)]
Fixup 1c07c0dc: editable() is unusable in mathed

This is a relic from IU (Inset Unification): editable() is for text
insets and isActive() for mathed. This needs to be cleaned up.

Part of bug #10667.

(cherry picked from commit d0acc3e570447b293169b8bdd5ac67aaade189e0)

7 years agoFix crash with full view source (#10560 and #10617)
Guillaume MM [Mon, 1 May 2017 23:36:23 +0000 (01:36 +0200)]
Fix crash with full view source (#10560 and #10617)

7 years agoMake fixIfBroken() more robust
Jean-Marc Lasgouttes [Thu, 15 Jun 2017 09:49:49 +0000 (11:49 +0200)]
Make fixIfBroken() more robust

Chop slice when its inset is not editable.

Fixes bug #10667.

(cherry picked from commit 522516d99eff64c0d1b339c951ef0e0d61a74394)

7 years agoCatch "! Incomplete \\if[x]" error
Juergen Spitzmueller [Fri, 16 Jun 2017 08:05:12 +0000 (10:05 +0200)]
Catch "! Incomplete \\if[x]" error

Fixes: #10666
7 years agoWhen entering an inset by cursor, reset boundary
Jean-Marc Lasgouttes [Wed, 14 Jun 2017 13:08:27 +0000 (15:08 +0200)]
When entering an inset by cursor, reset boundary

This happens when cursor-left/right enters an inset.

Fixes bug #10630.

(cherry picked from commit 2e84b8030e69f209d6565d11b4ae84f01d450d0d)

7 years agoSet cursor properly after double/triple click in mathed
Jean-Marc Lasgouttes [Mon, 12 Jun 2017 16:00:43 +0000 (18:00 +0200)]
Set cursor properly after double/triple click in mathed

Without this setCurrentFont() is not correctly called on the
BufferView cursor and the cursor could appear in L-form.

Fixes bug #10686.

(cherry picked from commit 5d7dae9e382f0b01800f5652e673e12fa6923740)

7 years agoAvoid rounding issue when painting selection
Jean-Marc Lasgouttes [Mon, 12 Jun 2017 12:39:03 +0000 (14:39 +0200)]
Avoid rounding issue when painting selection

This issue was already addressed in the all_sel case. It only happens
at specific zoom and jusification values.

Fixes part of #8883.

(cherry picked from commit 71563835c7943ea987a5d967b79ec90cb2b3c26e)

7 years agoFix bad cursor positioning when entering an inset
Jean-Marc Lasgouttes [Thu, 8 Jun 2017 09:35:05 +0000 (11:35 +0200)]
Fix bad cursor positioning when entering an inset

The test added at 359aef92 was incorrect. Actually, Inset::editXY
returns the inset when it is edited and also when it is not, which
can be confusing. So if we are unlucky and the slices positions in the
text area and in the inner inset match, the code below triggers and
many bad things can happen.

Also improve the documentation of Inset::editXY and TextMetrics::editXY.

Fixes #10691.

(cherry picked from commit c9fefd5a2cf5eb97fb23279e5b5e2f4c3a19b22e)

7 years agoEarly updates to ANNOUNCE in preparation for 2.2.4.
Richard Heck [Wed, 7 Jun 2017 18:57:07 +0000 (14:57 -0400)]
Early updates to ANNOUNCE in preparation for 2.2.4.

7 years agoja.po: updates from Koji
Uwe Stöhr [Tue, 6 Jun 2017 21:35:33 +0000 (23:35 +0200)]
ja.po: updates from Koji

7 years agoRemerge strings.
Richard Heck [Tue, 6 Jun 2017 20:42:11 +0000 (16:42 -0400)]
Remerge strings.

7 years agoFix bug #10685
Enrico Forestieri [Mon, 5 Jun 2017 22:01:14 +0000 (00:01 +0200)]
Fix bug #10685

Make sure to properly nest \begin{lang} and \end{lang} tags even
when no language package is selected. In this case, LyX assumes
that babel is being used, so the language names might be wrong
if the user arranged for using polyglossia in the preamble.
Nevertheless, we assure that the produced output is syntactically
correct, so that by adding proper preamble code a correct output
is still possible.

7 years agoFix bugs #9598 and #10650
Enrico Forestieri [Mon, 5 Jun 2017 21:14:48 +0000 (23:14 +0200)]
Fix bugs #9598 and #10650

7 years agoFix bug #10636
Enrico Forestieri [Mon, 5 Jun 2017 20:59:25 +0000 (22:59 +0200)]
Fix bug #10636

The code was not accounting for partial preview of the source code
and was trying to pop a language that was never pushed.

7 years agoFix bug #10295.
Richard Heck [Mon, 3 Apr 2017 00:59:23 +0000 (20:59 -0400)]
Fix bug #10295.

As it was, the comparison buffer was sharing a DocumentClass with
the buffer from which the document settings are taken.

(cherry picked from commit f9835d054d7aac5830ec6bb5a3537c2b4fa2d269)

7 years agozh_CN.po: updates from Su Baochen
Scott Kostyshak [Sat, 3 Jun 2017 19:12:35 +0000 (15:12 -0400)]
zh_CN.po: updates from Su Baochen

7 years agoCache QTextLayout objects with Qt/Mac
Jean-Marc Lasgouttes [Tue, 18 Apr 2017 12:02:31 +0000 (14:02 +0200)]
Cache QTextLayout objects with Qt/Mac

It seems that the internal Qt5 caching does not work well here,
especially in the case of ancient Hebrew documents.

(cherry picked from commit 5354c64b273eac7b869ca44436db7088d8c73bb4)

7 years agoTake in account end of paragraph marker for inset width
Jean-Marc Lasgouttes [Wed, 24 May 2017 12:05:06 +0000 (14:05 +0200)]
Take in account end of paragraph marker for inset width

When an inset wants to use the whole available width, it is necessary
to take into account that some of this width may already be taken by
the end-of-paragraph (pilcrow) marker.

Fixes bug #10537.

(cherry picked from commit 91f3b21e42c7b3b2028ec8f66460440e9ddadcbf)

7 years agoRevert unintended part of commit that was causing changed output.
Richard Heck [Mon, 29 May 2017 22:25:26 +0000 (18:25 -0400)]
Revert unintended part of commit that was causing changed output.

7 years agoThese two routines are now redundant.
Richard Heck [Fri, 21 Oct 2016 02:56:40 +0000 (22:56 -0400)]
These two routines are now redundant.

(cherry picked from commit c19794a01360a26824ddcabd82cde810e4d1867a)

7 years agoWe can now use the cached information instead of tracing the graph.
Richard Heck [Fri, 21 Oct 2016 02:52:54 +0000 (22:52 -0400)]
We can now use the cached information instead of tracing the graph.

(cherry picked from commit 7c9e9b4c90fade3be8623a9fc1a509e06872a9cd)

7 years agoUse a typedef for vector<Format const *>, which is what gets used
Richard Heck [Wed, 19 Oct 2016 22:11:58 +0000 (18:11 -0400)]
Use a typedef for vector<Format const *>, which is what gets used
for lists of exportable and importable formats.

(cherry picked from commit 014bc7805e8a9eca1096db67b1e9d26e1ff6c7e2)

7 years agoSince we're now caching this, we can sort it once, rather than
Richard Heck [Wed, 19 Oct 2016 21:28:51 +0000 (17:28 -0400)]
Since we're now caching this, we can sort it once, rather than
lots of times.

(cherry picked from commit 7fd1a14c1b048b0b0f92239e84d0b3397a2fde24)

7 years agoSimple cache for information on exportable formats, since we seem
Richard Heck [Wed, 19 Oct 2016 21:22:58 +0000 (17:22 -0400)]
Simple cache for information on exportable formats, since we seem
to access this information a lot.

(cherry picked from commit 0b67e103e97a0c12fd18382152d762fc8d95dff1)

7 years agoUpdate sk.po
Kornel Benko [Tue, 23 May 2017 15:24:57 +0000 (17:24 +0200)]
Update sk.po

7 years agoRow::Element::x2pos: go to nearest point also over insets
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:13:24 +0000 (15:13 +0200)]
Row::Element::x2pos: go to nearest point also over insets

getPosNearX, which is the only user of x2pos, should always return the
nearest position.

In editXY, there is a need to return the position where the inset
stands, but it is done using checkInsetHit.

Fixes part of bug #10569.

(cherry picked from commit 8769c0fb750a8c46e6f053c5f73b3991393dcd73)
(cherry picked from commit 20696ecb7ee335dedcc8a1b0d24e4cc56736d81f)