Commit Graph

39203 Commits

Author SHA1 Message Date
Enrico Forestieri
48cd67ebf8 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 cf5f2661dc)
2018-08-08 13:15:56 +02:00
Enrico Forestieri
e1fa3cb248 Update the server_monitor example client to Qt5
(cherry picked from commit ab72f94595)
2018-08-08 13:12:33 +02:00
Juergen Spitzmueller
94093a534e ru.po: update by Yuriy 2018-08-05 08:00:25 +02:00
Enrico Forestieri
9963cc2ef5 Update it.po 2018-08-04 15:47:33 +02:00
Kornel Benko
1140ed1ed3 Revert "Do not increment start for find(phrase) while looping over phrases"
This reverts commit e7b3b62b0b.
The 'for phrase in' loop is organized differently to master.

Thanks Enrico
2018-08-04 13:36:38 +02:00
Juergen Spitzmueller
8bc4f490db uk.po: more update by Yuri 2018-08-04 07:41:03 +02:00
Juergen Spitzmueller
8ca7c37b66 de.po: update 2018-08-04 07:20:44 +02:00
Juergen Spitzmueller
08ad339d6e resync po files 2018-08-04 07:17:19 +02:00
Juergen Spitzmueller
9c3dbfb7ed uk.po: Update by Yuri 2018-08-04 07:12:33 +02:00
Kornel Benko
e7b3b62b0b 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 a96845660e)
2018-08-03 19:54:24 +02:00
Juergen Spitzmueller
7de98f7dbc Change size policy of buffer combo in refs dialog
Fixes: #9316
(cherry picked from commit b286c6d235)
2018-08-03 19:46:27 +02:00
Juergen Spitzmueller
0aba166efe ru.po: update from Yuriy 2018-08-03 17:08:21 +02:00
Kornel Benko
4fd12a0f7c Update sk.po 2018-08-03 08:21:53 +02:00
Juergen Spitzmueller
d762d55558 Fix problem of unwanted spaces caused by macro definitions
Patch by Gilbert J. M. Forkel

Fixes: #11216
(cherry picked from commit 372712cfd9)
2018-07-31 08:49:50 +02:00
Enrico Forestieri
9a851be4fa 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.
2018-07-28 23:27:43 +02:00
Juergen Spitzmueller
3481bf4c11 Add Winfred Huang to the Credits
(cherry picked from commit df33cc3334)
2018-07-28 09:38:12 +02:00
Juergen Spitzmueller
afd470f394 ru.po: another update from Yuriy 2018-07-27 14:10:43 +02:00
Juergen Spitzmueller
e0e998b157 Fix austrian language code
(cherry picked from commit b12ea3b731)
2018-07-25 19:44:26 +02:00
Juergen Spitzmueller
898ed85dd7 zh_CN: update from Winfred Huang 2018-07-25 15:43:20 +02:00
Juergen Spitzmueller
52e97e1b95 ru.po: update by Yuriy 2018-07-23 10:12:29 +02:00
Juergen Spitzmueller
1d8ee1c704 (a)mend edb2d14124
(cherry picked from commit 0bf7b3211d)
2018-07-22 10:19:37 +02:00
Juergen Spitzmueller
7ec4fa149c Set RTL tooltips RTL
Fixes: #10672
(cherry picked from commit edb2d14124)
2018-07-22 10:18:27 +02:00
Juergen Spitzmueller
485f070887 Fix nesting problem with numbers in RTL text
\textcolor must precede any \beginL

Fixes: #6283
(cherry picked from commit 114ebf00c4)
2018-07-22 10:16:32 +02:00
Juergen Spitzmueller
cc845ed2cf Fix bracket output in RTL languages
This is a real mess!

Fixes: #11187
(cherry picked from commit 195f62ac93)
2018-07-21 10:40:59 +02:00
Juergen Spitzmueller
a17dfeee0e Fix quotation marks in RTL script
Fixes: #11188
(cherry picked from commit aa1d9638fe)
2018-07-21 10:27:38 +02:00
Juergen Spitzmueller
bdbdd28756 Fix command line output of convertDefault.py for ImageMagick
Part of #11186

(cherry picked from commit 1e5acc5656)
2018-07-13 17:26:34 +02:00
Juergen Spitzmueller
82cade4877 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 0148ef7e6c)
2018-07-11 19:11:28 +02:00
Juergen Spitzmueller
12ca81f2ea Fix creationCode() of GuiPrintNomencl
This fixes "New Inset" in that dialog.

Candidate for stable

(cherry picked from commit d2afa67da9)
2018-07-10 17:52:50 +02:00
Kornel Benko
73612100f2 Update sk.po 2018-07-07 11:38:13 +02:00
Pavel Sanda
52355c2ba6 * cs.po 2018-07-07 11:28:57 +02:00
Kornel Benko
87ade10245 dtk.layout: Remove secondary dependencies due to change in TL2018
(cherry picked from commit 650ef5f1cb)
2018-07-06 10:00:30 +02:00
Juergen Spitzmueller
2394de0b0f Update elsarticle entry in LaTeXConfig
(cherry picked from commit 73e0a6c4d5)
2018-07-05 19:29:57 +02:00
Juergen Spitzmueller
c5ece21095 Fix typo 2018-07-05 17:52:28 +02:00
Kornel Benko
5d8e738a12 Update sk.po 2018-07-04 19:34:11 +02:00
Pavel Sanda
1bf8d662e1 * cs.po 2018-07-04 18:58:14 +02:00
Jean-Marc Lasgouttes
25e0ca1860 Do not force lfun argument to be pure ascii
Fixes bug #11167.

(cherry picked from commit 8e015f3cb2)
2018-07-04 11:46:03 +02:00
Jean-Marc Lasgouttes
5eb4a15579 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 789acb4a95)
2018-07-04 11:22:00 +02:00
Juergen Spitzmueller
3d5b544e7a Fix another encoding problem in ja/
(cherry picked from commit 68f6c671c5)
2018-07-03 12:38:25 +02:00
Juergen Spitzmueller
9bfd2fffa1 Fix input encoding issue with German example text
pLaTeX requires SJIS encoding, so only ASCII latin is possible.

(cherry picked from commit 1a96b0d184)
2018-07-03 11:34:05 +02:00
Juergen Spitzmueller
ab450346b5 Handle correctly zero table special arguments.
Fixes: #10247
2018-06-27 08:16:59 +02:00
Scott Kostyshak
03fef44b54 status: describe the CMake changes in 889d10cd 2018-06-24 18:04:54 -04:00
Kornel Benko
889d10cda3 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 d6b21e20e2)
(cherry picked from commit 72a2f92239)
(cherry picked from commit 6343452a73)
(cherry picked from commit cb08d4a879)
(cherry picked from commit 1bf4d7b0fc)
2018-06-20 00:09:19 +02:00
Pavel Sanda
0eccf87797 lyx-build: check sig in case one really uses download instead of local tarball. 2018-06-19 23:58:19 +02:00
Enrico Forestieri
49c0021306 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 f6922b8c88)
2018-06-17 23:37:39 +02:00
Jean-Marc Lasgouttes
567e94347a 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 c7496a11b2)
(cherry picked from commit 4d0c43f9aa)
2018-06-15 14:12:32 +02:00
Richard Kimberly Heck
8abea3b7e9 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 19e6977b5b)
(cherry picked from commit d03deeca0c)
2018-06-15 13:45:28 +02:00
Jean-Marc Lasgouttes
00ec2dd106 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 f1ea7fee5c)
2018-06-11 10:35:55 +02:00
Jean-Marc Lasgouttes
97fe69426d Draw frame last when drawing text insets
This avoid cases where the blinking cursor erases the frame.

(cherry picked from commit 4e9084b3e4)
(cherry picked from commit 6bcc7d6e42)
2018-06-11 10:24:05 +02:00
Enrico Forestieri
44466f305f 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
2018-06-07 23:13:33 +02:00
Jean-Marc Lasgouttes
874ad18178 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 a3868e40a4)
2018-05-24 17:28:49 +02:00