]> git.lyx.org Git - lyx.git/log
lyx.git
5 years agotex2lyx: Add support for multirow
Juergen Spitzmueller [Sun, 24 Jun 2018 16:13:03 +0000 (18:13 +0200)]
tex2lyx: Add support for multirow

Fixes: #11164
(cherry picked from commit c33506555f5f7193b0cbce6c9878d62a18f37cc9)

5 years agoWe do not natively support multirow yet
Juergen Spitzmueller [Fri, 1 Jun 2018 15:11:35 +0000 (17:11 +0200)]
We do not natively support multirow yet

See #11164

(cherry picked from commit 2fbce44401986b61102695ca2eb2bdc5ff77d7ca)

5 years agoConsider required modules when checking for layout definitions in modules
Juergen Spitzmueller [Thu, 24 May 2018 15:38:10 +0000 (17:38 +0200)]
Consider required modules when checking for layout definitions in modules

Fixes: #11156.
(cherry picked from commit 8b4c76fb2465402dc48915b965de8a6f9a884795)

5 years agoPar alignment in floats must be swapped for all RTL langs, not only Hebrew
Juergen Spitzmueller [Sun, 15 Jul 2018 17:23:19 +0000 (19:23 +0200)]
Par alignment in floats must be swapped for all RTL langs, not only Hebrew

Fixes: #11029
(cherry picked from commit 3bacc3c6e73e87c1fdb3a9af33533c556d1d7274)

5 years agoHebrew docs: No need to mark logos as English
Scott Kostyshak [Mon, 16 Jul 2018 08:58:22 +0000 (04:58 -0400)]
Hebrew docs: No need to mark logos as English

Thanks to the fix to #10423, we can leave e.g. \LyX and \LaTeX as
the default language (which is Hebrew for these document).

(cherry picked from commit 7b5768504834533410aedf472ad5ff454f71313b)

5 years agoProper logos with RTL
Juergen Spitzmueller [Sun, 15 Jul 2018 18:56:55 +0000 (20:56 +0200)]
Proper logos with RTL

Fixes #10423

(cherry picked from commit e5a9244bef8b7d86ae86fa2d180adbd0c47b70f1)

5 years agoImplement tri-state in GuiSetBorder
Juergen Spitzmueller [Tue, 24 Jul 2018 11:49:27 +0000 (13:49 +0200)]
Implement tri-state in GuiSetBorder

A new UNDECIDED state is used if multiple cells with differing border
settings are selected.

This prevents additional borders to be set without being asked.

Fixes: #10010
(cherry picked from commit 99aefa5fd2c2184f0a67930046956df7d8f611df)

5 years agoDisallow paragraph customization in some single-par charstyle insets
Juergen Spitzmueller [Fri, 11 May 2018 11:47:27 +0000 (13:47 +0200)]
Disallow paragraph customization in some single-par charstyle insets

Fixes: #9192
(cherry picked from commit 7a5184fd87e747b089acf4563ebacabe2e1f121a)

5 years agoWrap rotated cells with linebreaks in varwidth
Juergen Spitzmueller [Sat, 30 Jun 2018 12:32:27 +0000 (14:32 +0200)]
Wrap rotated cells with linebreaks in varwidth

Fixes: #8085
(cherry picked from commit 88e5e5fd345c280b0927ad84785657cbc9e55f77)

5 years agotex2lyx: extend titling support
Juergen Spitzmueller [Wed, 23 May 2018 10:34:41 +0000 (12:34 +0200)]
tex2lyx: extend titling support

Rather than checking for hardcoded title commands such as \maketitle,
use the titlename and titletype as defined in the layout.

This now also includes title environments.

Fixes part of #6461

(cherry picked from commit 429edc0a59a0509445bb93cd7d60c3d9ff36bd6b)

5 years agoConsider EuropeanNumberTerminator property when determining text direction
Juergen Spitzmueller [Sun, 22 Jul 2018 10:36:38 +0000 (12:36 +0200)]
Consider EuropeanNumberTerminator property when determining text direction

Also, use EuropeanNumberSeparator information rather than relying on an
own (incomplete) list of number separators.

Fixes: #4057
(cherry picked from commit 611df441b6e44ad641d6d9424fe68fe72d641706)

5 years agoFix bug #11203
Enrico Forestieri [Sun, 22 Jul 2018 20:22:13 +0000 (22:22 +0200)]
Fix bug #11203

Minted does not have a language option but it is possible to enter
this option in the LyX interface for compatibility with the listings
package, and also for letting to enter a language not present in the
gui. So, this option is only used for properly specifying a language
in a listing, unless it is entered in the document settings dialog.
This case was not foreseen and thus the option was being passed to
the package as is, causing havoc. With this commit the option is
still available but is used to set a default language for a new
listing in place of the default "tex" language used so far.

(cherry picked from commit 16ca5290c0d619df23406275e6698594b90ce7ab)

5 years agoSupport input of non-ASCII characters in hyperlinks
Juergen Spitzmueller [Sat, 9 Jun 2018 09:52:55 +0000 (11:52 +0200)]
Support input of non-ASCII characters in hyperlinks

We transform them to hex representation via
QByteArray::toPercentEncoding()

Fixes: #11165
(cherry picked from commit 01d8f418943f5f63f329658d387a7dbd9a024c91)

5 years agoUse footnotehyper rather than footnote if hyperref is used
Juergen Spitzmueller [Wed, 25 Jul 2018 16:01:22 +0000 (18:01 +0200)]
Use footnotehyper rather than footnote if hyperref is used

Fixes: #11212
(cherry picked from commit f8e286b82328b545172f0f9ab6b26530837c06b2)

5 years agoCapitalization fixes
Juergen Spitzmueller [Sun, 5 Aug 2018 08:10:50 +0000 (10:10 +0200)]
Capitalization fixes

Fixes: #11237
(cherry picked from commit b75f716b7337045898c0d997dac25ff9e8626ddd)

5 years agoDisambiguate dialog buttons
Juergen Spitzmueller [Tue, 14 Aug 2018 15:03:46 +0000 (17:03 +0200)]
Disambiguate dialog buttons

Fixes: #11242
(cherry picked from commit 74657a14a7d0d121724725e936b10be26efab846)

5 years agoDo not start from a non-relevant parent in Buffer cloning.
Juergen Spitzmueller [Wed, 16 May 2018 06:35:21 +0000 (08:35 +0200)]
Do not start from a non-relevant parent in Buffer cloning.

(cherry picked from commit e077255aea9d8380e1efcef00e90b822d19bc5d3)

5 years agoImprove Springer layout descriptions
Juergen Spitzmueller [Sun, 9 Sep 2018 08:31:55 +0000 (10:31 +0200)]
Improve Springer layout descriptions

5 years agoRedesign character dialog
Juergen Spitzmueller [Sun, 9 Sep 2018 08:20:00 +0000 (10:20 +0200)]
Redesign character dialog

Fixes: #2752, #3804, #3884, #4836
Backport of [fb393b450d661/lyxgit] and [f888afeb9ef7/lyxgit]

5 years agoTry yet again try to fix bug #9158.
Richard Kimberly Heck [Sun, 2 Sep 2018 04:10:01 +0000 (00:10 -0400)]
Try yet again try to fix bug #9158.

The problem with the previous attempt was that, every time through
updateBuffer, we looked up the file location using kpsewhich, which
took too long on Windows. The new solution is to cache that info, and
to look it up only when we need it.

Previously, this info would have been re-read whenever we parsed the
bibfiles. So we re-read it now whenever the bibinfo cache is invalid,
which is less often, but should be good enough. We can add more such
re-reads if need be.

(cherry picked from commit 601449269939150bb7452698809e59c00a98a20f)

5 years agoKill off the bundled installer.
Richard Kimberly Heck [Sat, 8 Sep 2018 20:56:05 +0000 (16:56 -0400)]
Kill off the bundled installer.

5 years agoBack to development.
Richard Kimberly Heck [Sat, 8 Sep 2018 22:55:07 +0000 (18:55 -0400)]
Back to development.

5 years agoDebugging, etc, for build script. 2.3.1
Richard Kimberly Heck [Sat, 8 Sep 2018 18:24:49 +0000 (14:24 -0400)]
Debugging, etc, for build script.

5 years agoNew version of Windows installer.
Richard Kimberly Heck [Thu, 6 Sep 2018 17:35:43 +0000 (13:35 -0400)]
New version of Windows installer.

6 years agoRevert "Attempt to fix bug 9158 using updateBuffer."
Richard Kimberly Heck [Sun, 2 Sep 2018 01:48:48 +0000 (21:48 -0400)]
Revert "Attempt to fix bug 9158 using updateBuffer."

This reverts commit fe246160603786a9d299755d88eabd3d7ce5439e.

6 years agoRevert "Use separate BibInfo for child"
Richard Kimberly Heck [Sun, 2 Sep 2018 01:47:23 +0000 (21:47 -0400)]
Revert "Use separate BibInfo for child"

This reverts commit cfce0ac009e8820df79d845c2b0c237cbd441dcb.

6 years agoRevert "amend cfce0ac0"
Richard Kimberly Heck [Sun, 2 Sep 2018 01:47:20 +0000 (21:47 -0400)]
Revert "amend cfce0ac0"

This reverts commit 9c1ac5e6d9a2e18656212d8a2b54b9d12a47c6c9.

6 years agoRevert "Prevent that a full source preview of a child clears the master's bibfiles...
Richard Kimberly Heck [Sun, 2 Sep 2018 01:47:11 +0000 (21:47 -0400)]
Revert "Prevent that a full source preview of a child clears the master's bibfiles cache."

This reverts commit 4ce9e61ab137706de57a856fab3b5f9af237e5a4.

6 years agoRemove MiKTeX update warning and update version etc.
Richard Kimberly Heck [Thu, 30 Aug 2018 20:06:15 +0000 (16:06 -0400)]
Remove MiKTeX update warning and update version etc.

6 years agoUpdates to cmake scripts needed to build with mingw on Fedora.
Richard Kimberly Heck [Thu, 30 Aug 2018 19:28:13 +0000 (15:28 -0400)]
Updates to cmake scripts needed to build with mingw on Fedora.

These are not really right. Things are hardcoded that probably should
not be. These are marked (hopefully) with "# RKH" comments. Possibly
what's needed is another flag? Anyway, help welcome.

6 years agoResource icons for Windows.
Richard Kimberly Heck [Thu, 30 Aug 2018 19:17:27 +0000 (15:17 -0400)]
Resource icons for Windows.

6 years agoPackaging updates from 2.3.0.
Richard Kimberly Heck [Thu, 30 Aug 2018 19:14:06 +0000 (15:14 -0400)]
Packaging updates from 2.3.0.

6 years agoUpdates to build script.
Richard Kimberly Heck [Thu, 30 Aug 2018 19:08:47 +0000 (15:08 -0400)]
Updates to build script.

6 years agoFixes for the README file, from Joel Kulesza.
Richard Kimberly Heck [Tue, 28 Aug 2018 19:28:39 +0000 (15:28 -0400)]
Fixes for the README file, from Joel Kulesza.

Fixes #11250.

6 years agoNotes related to bug #11216.
Richard Kimberly Heck [Tue, 28 Aug 2018 19:22:50 +0000 (15:22 -0400)]
Notes related to bug #11216.

6 years agoFixes for the build script.
Richard Kimberly Heck [Tue, 28 Aug 2018 19:18:53 +0000 (15:18 -0400)]
Fixes for the build script.

6 years agoPrepare for 2.3.1.
Richard Kimberly Heck [Mon, 27 Aug 2018 18:06:46 +0000 (14:06 -0400)]
Prepare for 2.3.1.

6 years agoFix credits entry
Juergen Spitzmueller [Mon, 20 Aug 2018 07:34:53 +0000 (09:34 +0200)]
Fix credits entry

6 years agozh_CN.po: update from Winfred
Juergen Spitzmueller [Mon, 20 Aug 2018 06:41:03 +0000 (08:41 +0200)]
zh_CN.po: update from Winfred

6 years agoFix line break in tooltip
Juergen Spitzmueller [Fri, 17 Aug 2018 08:32:57 +0000 (10:32 +0200)]
Fix line break in tooltip

Fixes: #11252
(cherry picked from commit 6d71b9b69a0166fbc95b8c356e355924b4b73ce0)

6 years agoRemerge hu.po
Pavel Sanda [Sun, 19 Aug 2018 23:25:45 +0000 (01:25 +0200)]
Remerge hu.po

6 years agohu.po - fix several errs.
Pavel Sanda [Sun, 19 Aug 2018 23:23:15 +0000 (01:23 +0200)]
hu.po - fix several errs.

hu.po:13448: warning: internationalized messages should not contain the '\a' escape sequence
...

6 years ago* hu.po - small update from Alex (including layouttranslations fixes)
Pavel Sanda [Sun, 19 Aug 2018 23:14:33 +0000 (01:14 +0200)]
* hu.po - small update from Alex (including layouttranslations fixes)

6 years agoFix bug #11247
Enrico Forestieri [Fri, 17 Aug 2018 20:28:03 +0000 (22:28 +0200)]
Fix bug #11247

async is a reserved keyword in python 3.7

(cherry picked from commit 061cd7fd9ca002c8935dbb6cd5b19c2725c3f1f5)

6 years agoRevert "Hungarian translations from Alex."
Richard Kimberly Heck [Sat, 18 Aug 2018 18:36:34 +0000 (14:36 -0400)]
Revert "Hungarian translations from Alex."

Already committed in what seems a slightly newer version?

This reverts commit e5d5460673fd406e08bddb223006f0df97183ba2.

6 years agoHungarian translations from Alex.
Richard Kimberly Heck [Sat, 18 Aug 2018 18:30:31 +0000 (14:30 -0400)]
Hungarian translations from Alex.

6 years agohu.po: update by Alex
Juergen Spitzmueller [Sat, 18 Aug 2018 13:10:48 +0000 (15:10 +0200)]
hu.po: update by Alex

6 years agoRemerge strings.
Richard Kimberly Heck [Thu, 9 Aug 2018 17:10:09 +0000 (13:10 -0400)]
Remerge strings.

6 years agoUpdate sk.po
Kornel Benko [Wed, 8 Aug 2018 11:51:14 +0000 (13:51 +0200)]
Update sk.po

6 years agoFix LyX server on Windows
Enrico Forestieri [Tue, 7 Aug 2018 15:56:07 +0000 (17:56 +0200)]
Fix LyX server on Windows

On some recent Windows versions, GetLastError() may also return
NO_ERROR instead of ERROR_IO_PENDING during an overlapped write
operation to a pipe. This was confusing the state machine in
Server.cpp so that replies to commands were scheduled but were
never actually output.

(cherry picked from commit cf5f2661dc0a902e541704172ab369ba3e5a54d6)

6 years agoUpdate the server_monitor example client to Qt5
Enrico Forestieri [Tue, 7 Aug 2018 15:47:50 +0000 (17:47 +0200)]
Update the server_monitor example client to Qt5

(cherry picked from commit ab72f9459501838f01f993c584c450997355678e)

6 years agoru.po: update by Yuriy
Juergen Spitzmueller [Sun, 5 Aug 2018 06:00:25 +0000 (08:00 +0200)]
ru.po: update by Yuriy

6 years agoUpdate it.po
Enrico Forestieri [Sat, 4 Aug 2018 13:47:33 +0000 (15:47 +0200)]
Update it.po

6 years agoRevert "Do not increment start for find(phrase) while looping over phrases"
Kornel Benko [Sat, 4 Aug 2018 11:36:38 +0000 (13:36 +0200)]
Revert "Do not increment start for find(phrase) while looping over phrases"

This reverts commit e7b3b62b0bf9a9f611bf8021556b8584ac0115c3.
The 'for phrase in' loop is organized differently to master.

Thanks Enrico

6 years agouk.po: more update by Yuri
Juergen Spitzmueller [Sat, 4 Aug 2018 05:41:03 +0000 (07:41 +0200)]
uk.po: more update by Yuri

6 years agode.po: update
Juergen Spitzmueller [Sat, 4 Aug 2018 05:20:44 +0000 (07:20 +0200)]
de.po: update

6 years agoresync po files
Juergen Spitzmueller [Sat, 4 Aug 2018 05:17:19 +0000 (07:17 +0200)]
resync po files

6 years agouk.po: Update by Yuri
Juergen Spitzmueller [Sat, 4 Aug 2018 05:11:02 +0000 (07:11 +0200)]
uk.po: Update by Yuri

6 years agoDo not increment start for find(phrase) while looping over phrases
Kornel Benko [Thu, 2 Aug 2018 20:51:36 +0000 (22:51 +0200)]
Do not increment start for find(phrase) while looping over phrases

The increment will be done at the end of the for-loop.

(cherry picked from commit a96845660eccd9feee738e56215377ac14a41ceb)

6 years agoChange size policy of buffer combo in refs dialog
Juergen Spitzmueller [Thu, 2 Aug 2018 07:08:11 +0000 (09:08 +0200)]
Change size policy of buffer combo in refs dialog

Fixes: #9316
(cherry picked from commit b286c6d23578e06500504e16980b99c1ed84fa81)

6 years agoru.po: update from Yuriy
Juergen Spitzmueller [Fri, 3 Aug 2018 15:08:21 +0000 (17:08 +0200)]
ru.po: update from Yuriy

6 years agoUpdate sk.po
Kornel Benko [Fri, 3 Aug 2018 06:21:53 +0000 (08:21 +0200)]
Update sk.po

6 years agoFix problem of unwanted spaces caused by macro definitions
Juergen Spitzmueller [Sun, 29 Jul 2018 13:16:44 +0000 (15:16 +0200)]
Fix problem of unwanted spaces caused by macro definitions

Patch by Gilbert J. M. Forkel

Fixes: #11216
(cherry picked from commit 372712cfd99269cfcaf57ebb86048c1457e38075)

6 years agoFix bug #11214
Enrico Forestieri [Sat, 28 Jul 2018 21:27:43 +0000 (23:27 +0200)]
Fix bug #11214

The checkProg() function was separating a command from its parameters
by splitting at the first space. This was a problem if the command
was specified with a full path containing spaces. Now the checkProg()
function separates a command from the parameters by splitting at the
first non-quoted space. So, it suffices quoting a path to solve the
issue.

6 years agoAdd Winfred Huang to the Credits
Juergen Spitzmueller [Sat, 28 Jul 2018 07:33:43 +0000 (09:33 +0200)]
Add Winfred Huang to the Credits

(cherry picked from commit df33cc3334c24911eb9c7eba39bea99d32ace399)

6 years agoru.po: another update from Yuriy
Juergen Spitzmueller [Fri, 27 Jul 2018 12:10:43 +0000 (14:10 +0200)]
ru.po: another update from Yuriy

6 years agoFix austrian language code
Juergen Spitzmueller [Wed, 25 Jul 2018 12:59:21 +0000 (14:59 +0200)]
Fix austrian language code

(cherry picked from commit b12ea3b7312d713e9987153c3555f56190ec6143)

6 years agozh_CN: update from Winfred Huang
Juergen Spitzmueller [Wed, 25 Jul 2018 13:41:57 +0000 (15:41 +0200)]
zh_CN: update from Winfred Huang

6 years agoru.po: update by Yuriy
Juergen Spitzmueller [Mon, 23 Jul 2018 08:12:29 +0000 (10:12 +0200)]
ru.po: update by Yuriy

6 years ago(a)mend edb2d1412482bd
Juergen Spitzmueller [Sat, 21 Jul 2018 16:33:49 +0000 (18:33 +0200)]
(a)mend edb2d1412482bd

(cherry picked from commit 0bf7b3211d89b117993c10389d872f7460ea1502)

6 years agoSet RTL tooltips RTL
Juergen Spitzmueller [Sat, 21 Jul 2018 16:23:47 +0000 (18:23 +0200)]
Set RTL tooltips RTL

Fixes: #10672
(cherry picked from commit edb2d1412482bdf302fd0902778433f96a4c2ed4)

6 years agoFix nesting problem with numbers in RTL text
Juergen Spitzmueller [Sat, 21 Jul 2018 13:50:35 +0000 (15:50 +0200)]
Fix nesting problem with numbers in RTL text

\textcolor must precede any \beginL

Fixes: #6283
(cherry picked from commit 114ebf00c4f12c8acf39b52e057f9a63a98dd58b)

6 years agoFix bracket output in RTL languages
Juergen Spitzmueller [Sun, 15 Jul 2018 12:26:29 +0000 (14:26 +0200)]
Fix bracket output in RTL languages

This is a real mess!

Fixes: #11187
(cherry picked from commit 195f62ac9322285bf4c6e16ec5081cc4c216e066)

6 years agoFix quotation marks in RTL script
Juergen Spitzmueller [Sun, 15 Jul 2018 10:11:10 +0000 (12:11 +0200)]
Fix quotation marks in RTL script

Fixes: #11188
(cherry picked from commit aa1d9638febccb8d9ac20548f7097dd2be440d63)

6 years agoFix command line output of convertDefault.py for ImageMagick
Juergen Spitzmueller [Fri, 13 Jul 2018 08:20:26 +0000 (10:20 +0200)]
Fix command line output of convertDefault.py for ImageMagick

Part of #11186

(cherry picked from commit 1e5acc5656431e124cd404d49274edc272c4eb1e)

6 years agoUse QMessageBox for toggleWarning if possible
Juergen Spitzmueller [Tue, 10 Jul 2018 13:00:25 +0000 (15:00 +0200)]
Use QMessageBox for toggleWarning if possible

Qt 5.2 introduces the possibility to place a checkbox on a QMessageBox,
so we need no longer to use our own crude dialog.

(cherry picked from commit 0148ef7e6c2f01ce96b91567af5e2b160f9d070a)

6 years agoFix creationCode() of GuiPrintNomencl
Juergen Spitzmueller [Tue, 10 Jul 2018 09:01:49 +0000 (11:01 +0200)]
Fix creationCode() of GuiPrintNomencl

This fixes "New Inset" in that dialog.

Candidate for stable

(cherry picked from commit d2afa67da91dd2371fd78516882f7f603fa4ab8b)

6 years agoUpdate sk.po
Kornel Benko [Sat, 7 Jul 2018 09:38:13 +0000 (11:38 +0200)]
Update sk.po

6 years ago* cs.po
Pavel Sanda [Sat, 7 Jul 2018 09:28:57 +0000 (11:28 +0200)]
* cs.po

6 years agodtk.layout: Remove secondary dependencies due to change in TL2018
Kornel Benko [Thu, 5 Jul 2018 15:53:15 +0000 (17:53 +0200)]
dtk.layout: Remove secondary dependencies due to change in TL2018

(cherry picked from commit 650ef5f1cbd56a3f763e04b6bee4fd6b1d325d32)

6 years agoUpdate elsarticle entry in LaTeXConfig
Juergen Spitzmueller [Thu, 5 Jul 2018 17:28:15 +0000 (19:28 +0200)]
Update elsarticle entry in LaTeXConfig

(cherry picked from commit 73e0a6c4d57c090cb72ea63f771fa49c55ad30fc)

6 years agoFix typo
Juergen Spitzmueller [Thu, 5 Jul 2018 15:52:28 +0000 (17:52 +0200)]
Fix typo

6 years agoUpdate sk.po
Kornel Benko [Wed, 4 Jul 2018 17:34:11 +0000 (19:34 +0200)]
Update sk.po

6 years ago* cs.po
Pavel Sanda [Wed, 4 Jul 2018 16:58:14 +0000 (18:58 +0200)]
* cs.po

6 years agoDo not force lfun argument to be pure ascii
Jean-Marc Lasgouttes [Mon, 2 Jul 2018 08:49:58 +0000 (10:49 +0200)]
Do not force lfun argument to be pure ascii

Fixes bug #11167.

(cherry picked from commit 8e015f3cb2879f625895cee10a19ec5796027d44)

6 years agoDo not allow completion when there is an active selection
Jean-Marc Lasgouttes [Tue, 3 Jul 2018 14:53:15 +0000 (16:53 +0200)]
Do not allow completion when there is an active selection

We do it in texted only, mathed is more difficult and not so relevant IMO.

(cherry picked from commit 789acb4a9517c7da0d70e3e473cc98d18eed7b00)

6 years agoFix another encoding problem in ja/
Juergen Spitzmueller [Tue, 3 Jul 2018 10:36:29 +0000 (12:36 +0200)]
Fix another encoding problem in ja/

(cherry picked from commit 68f6c671c53d4830ece86a07b5d551b0e2f7dab2)

6 years agoFix input encoding issue with German example text
Juergen Spitzmueller [Tue, 3 Jul 2018 09:31:39 +0000 (11:31 +0200)]
Fix input encoding issue with German example text

pLaTeX requires SJIS encoding, so only ASCII latin is possible.

(cherry picked from commit 1a96b0d184c435bb004da53f8f70c6422b69b888)

6 years agoHandle correctly zero table special arguments.
Juergen Spitzmueller [Tue, 26 Jun 2018 08:51:16 +0000 (10:51 +0200)]
Handle correctly zero table special arguments.

Fixes: #10247
6 years agostatus: describe the CMake changes in 889d10cd
Scott Kostyshak [Sun, 24 Jun 2018 22:03:35 +0000 (18:03 -0400)]
status: describe the CMake changes in 889d10cd

6 years agoCmake build: Adapt to compile with qt5.11
Kornel Benko [Thu, 14 Jun 2018 11:55:52 +0000 (13:55 +0200)]
Cmake build: Adapt to compile with qt5.11

Since qt5_use_modules() is removed from QT5 (as spotted
by Jürgen Spitzmüller), we had to create own version
of this macro.

According to this page:
http://doc.qt.io/qt-5/cmake-manual.html
the way to replace use of qt5_use_modules() for module "_mod" and target "_target"
is to use
  1.) cmake_minimum_required(VERSION 3.1.0)
  2.) find_package(Qt5${_mod} CONFIG REQUIRED)
  3.) target_link_libraries(${_target} Qt5::${_mod})
The last one sets all reguired libraries, compile flags and needed includes for the ${_target}

Disable possible warn about not known policy

Extend Clang compiler detection to cover Apple CLang

(cherry picked from commit d6b21e20e254c96d963c6ab4988ad635f8f4e44b)
(cherry picked from commit 72a2f922393f8029b658fffe3c5a2e3e2c81ac1d)
(cherry picked from commit 6343452a7397a5ac4b84af30d61c4d7fca5afbc1)
(cherry picked from commit cb08d4a879bf63222a4462308b614d3209607737)
(cherry picked from commit 1bf4d7b0fc2bc4c700e7cecc1e6e3c7faf4f03a5)

6 years agolyx-build: check sig in case one really uses download instead of local tarball.
Pavel Sanda [Tue, 19 Jun 2018 21:53:36 +0000 (23:53 +0200)]
lyx-build: check sig in case one really uses download instead of local tarball.

6 years agoFix bug #11174
Enrico Forestieri [Sat, 16 Jun 2018 18:55:38 +0000 (20:55 +0200)]
Fix bug #11174

Apparently, a new paragraph is started after a float even if
no blank line is actually present. So, account for this fact.

(cherry picked from commit f6922b8c88d4d2e5bcf39264b8bac056470f49b8)

6 years agoSkip paint event when in the middle of a buffer operation
Jean-Marc Lasgouttes [Thu, 31 May 2018 21:15:40 +0000 (23:15 +0200)]
Skip paint event when in the middle of a buffer operation

This is detected when an undo group is open and contains at east one
element. This means indeed that changes are in progress. Note that the
group is in general opened in GuiApplication::dispatch. The code there
is changed to ensure that the group is closed before updating the
screen.

This patch is experimental. It is expected to be replaced in master by
a more complete solution. It could in the meantime be backported to 2.3.x.

Fixes bug #11159.

(cherry picked from commit c7496a11b2f0bd714b6c2ee0f7189ff420e014ce)
(cherry picked from commit 4d0c43f9aa944649d4b5788c5de98d37c280a036)

6 years agoTry to fix bug #10989.
Richard Kimberly Heck [Thu, 26 Apr 2018 03:46:13 +0000 (23:46 -0400)]
Try to fix bug #10989.

The problem is that popping dialogs during reload can cause paint
events for which we are not ready. If this does not work, then we
can introduce a new flag, besides 'busy', for that case. But busy
does not seem to be used very widely, so hopefully this works.

Note that when paintEvent is triggered on macOS, the least we can do
is to copy our backing store to the screen.

(cherry picked from commit 19e6977b5b527ec8311da35d8f0a40d6fd509080)
(cherry picked from commit d03deeca0c666256ea68087c5c70b8de73b66edc)

6 years agoUnbreak completion in text mode
Jean-Marc Lasgouttes [Fri, 8 Jun 2018 08:32:47 +0000 (10:32 +0200)]
Unbreak completion in text mode

Completion uses a complicated async scheme based on timers to update
itself. This is probably not necessary anymore and is fragile to
event order changes.

This is what happens with the new painting scheme. Therefore the
asyncHideXXX() methods have to be made more robust and detect whether
completion state has changed by the time they are triggered.

(cherry picked from commit f1ea7fee5cda3fbbeb9fdbb8bec2bd91c0745e56)

6 years agoDraw frame last when drawing text insets
Jean-Marc Lasgouttes [Fri, 25 May 2018 15:08:45 +0000 (17:08 +0200)]
Draw frame last when drawing text insets

This avoid cases where the blinking cursor erases the frame.

(cherry picked from commit 4e9084b3e48697efc3eb4cc7a76b87f99a5e4aed)
(cherry picked from commit 6bcc7d6e42a53979b5c002ea445cf1e32006571e)

6 years agoAvoid duplicate generation of the same preview
Enrico Forestieri [Wed, 6 Jun 2018 16:59:37 +0000 (18:59 +0200)]
Avoid duplicate generation of the same preview

When an image has to be loaded a second time and the cache
is not used or the image is not in the cache, its preview is
going to be regenerated again. Hence, if the same image
appears more than once on screen, avoid requesting simultaneous
generation of the same preview.
See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg205057.html

6 years agoSet caret height correctly for cells inside math rows
Jean-Marc Lasgouttes [Thu, 24 May 2018 09:10:25 +0000 (11:10 +0200)]
Set caret height correctly for cells inside math rows

The code in 90cfe4ec3 only handled the cells which metrics are
computed directly, and missed those who were linearized inside a MathRow.

To fix this, we use the fact that all the positions in a math row have
the same height and make MathRow::metrics return a boolean indicating
whether it contains a caret for a given bufferview.

Fixes bug #11153.

(cherry picked from commit a3868e40a40853bf3500ec4b3fb1a152f846464c)

6 years agoReset dim width when computing MathRow metrics
Jean-Marc Lasgouttes [Mon, 21 May 2018 11:24:27 +0000 (13:24 +0200)]
Reset dim width when computing MathRow metrics

This was dropped by mistake in 7bcb78a77.

Fixes bug #11152.

(cherry picked from commit c58b914c80d57c7d12ac4c244682e82adfbcdd9c)