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

5 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/

5 years agoEncapsulate libmagic support in a class
Jean-Marc Lasgouttes [Tue, 3 Jul 2018 09:36:12 +0000 (11:36 +0200)]
Encapsulate libmagic support in a class

This makes the code much easier to read and, additionally, allows to
parse the magic file with magic_load() only once per session.

As a result, getFormatFromFile is slightly faster.

5 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.

5 years agoAmend e5c79a43ee781
Juergen Spitzmueller [Mon, 2 Jul 2018 17:16:22 +0000 (19:16 +0200)]
Amend e5c79a43ee781

Consider some tabularx specifics for the display of tabular/column widths
in the workarea.

5 years agoAttempt to reflect tabular width in workarea
Juergen Spitzmueller [Mon, 2 Jul 2018 15:05:46 +0000 (17:05 +0200)]
Attempt to reflect tabular width in workarea

This is not perfect, since variable width columns will break at a certain
treshold, but it is better than what we have now (no tabular width
indication at all)

5 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.

5 years agoSupport varwidth's V tabular column type
Juergen Spitzmueller [Sun, 1 Jul 2018 17:18:38 +0000 (19:18 +0200)]
Support varwidth's V tabular column type

This effectively enables linebreaks, multipars and layout changes in
non-fixed width (i.e., standard) table columns.

Fixes: #6577
TODO: metrics are wrong (too wide) on screen with linebreaks.

5 years agoAmend 88e5e5f: Wrap rotated cells with linebreaks in varwidth
Kornel Benko [Sat, 30 Jun 2018 15:00:56 +0000 (17:00 +0200)]
Amend 88e5e5f: Wrap rotated cells with linebreaks in varwidth
Added testcase from #8085

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
5 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
5 years agoupdate assertion.
Richard Kimberly Heck [Tue, 26 Jun 2018 04:26:35 +0000 (00:26 -0400)]
update assertion.

5 years agoCmake tests: Added tex2lyx test for xltabular and tabularx
Kornel Benko [Mon, 25 Jun 2018 10:01:44 +0000 (12:01 +0200)]
Cmake tests: Added tex2lyx test for xltabular and tabularx

5 years agoFix definition of boolean
Juergen Spitzmueller [Mon, 25 Jun 2018 10:01:26 +0000 (12:01 +0200)]
Fix definition of boolean

5 years agotex2lyx: tabular width in longtable is now possible (via xltabular).
Juergen Spitzmueller [Mon, 25 Jun 2018 09:52:56 +0000 (11:52 +0200)]
tex2lyx: tabular width in longtable is now possible (via xltabular).

5 years agoWith xltabular, multi-page tables can have a fixed width
Juergen Spitzmueller [Mon, 25 Jun 2018 08:53:40 +0000 (10:53 +0200)]
With xltabular, multi-page tables can have a fixed width

5 years agoGuiTabular: set focus on column width LE if custom is selected
Juergen Spitzmueller [Mon, 25 Jun 2018 08:34:57 +0000 (10:34 +0200)]
GuiTabular: set focus on column width LE if custom is selected

5 years agode.po
Juergen Spitzmueller [Mon, 25 Jun 2018 08:27:27 +0000 (10:27 +0200)]
de.po

5 years agoFix bug #11180
Enrico Forestieri [Sun, 24 Jun 2018 18:06:40 +0000 (20:06 +0200)]
Fix bug #11180

When a raster image with an advertised pixel density different
from 72 dpi is included in a latex file, the output image dimensions
are scaled by the ratio 72/pixel_density. Hence, if a clipping
bounding box is specified, it has to be scaled by the same ratio,
otherwise the images will be clipped differently on screen and output.
Here we use the extractbb command (present in any TeX distribution)
to ask about the output dimensions of the image as dictated by the
pixel density and compute the scaling ratio by the knowledge of the
actual dimensions. If, for whatever reason, extractbb is not found,
everything goes as before, because the clipping bounding box will
simply not be corrected.

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
5 years agoUpdate sk.po
Kornel Benko [Sun, 24 Jun 2018 08:49:29 +0000 (10:49 +0200)]
Update sk.po

5 years agode.po: update
Juergen Spitzmueller [Sun, 24 Jun 2018 08:34:44 +0000 (10:34 +0200)]
de.po: update

5 years agotex2lyx: check for \maketitle also if other titlename is specified
Juergen Spitzmueller [Sun, 24 Jun 2018 08:23:30 +0000 (10:23 +0200)]
tex2lyx: check for \maketitle also if other titlename is specified

Beamer for instance supports \maketitle, although we use \makebeamertitle

5 years agoUpdate tex2lyx tests.
Juergen Spitzmueller [Sun, 24 Jun 2018 08:09:39 +0000 (10:09 +0200)]
Update tex2lyx tests.

5 years agoAdd support for tabularx/xltabular
Juergen Spitzmueller [Sun, 24 Jun 2018 08:05:15 +0000 (10:05 +0200)]
Add support for tabularx/xltabular

I.e., variable width columns in single and multiple page tables

Files format change.

Fixes: #4154, #4155
5 years agoCmake tests: Adapt some keytests due to changed key-bindings
Kornel Benko [Sat, 23 Jun 2018 17:00:04 +0000 (19:00 +0200)]
Cmake tests: Adapt some keytests due to changed key-bindings

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.

6 years agoExtend Clang compiler detection to cover Apple CLang
Stephan Witt [Tue, 12 Jun 2018 20:42:48 +0000 (22:42 +0200)]
Extend Clang compiler detection to cover Apple CLang

CMake 3.0 and above recognize that Apple Clang is a different compiler than upstream Clang and so it gets a different CMAKE_CXX_COMPILER_ID.

6 years agoINSTALL.cmake: update min. CMake version to 3.1.0
Scott Kostyshak [Sun, 10 Jun 2018 18:21:23 +0000 (14:21 -0400)]
INSTALL.cmake: update min. CMake version to 3.1.0

As of 72a2f922, we require at least CMake version 3.1.0.

6 years agoCmake build: Disable possible warn about not known policy
Kornel Benko [Sun, 10 Jun 2018 09:40:12 +0000 (11:40 +0200)]
Cmake build: Disable possible warn about not known policy

6 years agoCmake build: Simplify use of qt5 modules
Kornel Benko [Sat, 9 Jun 2018 21:59:47 +0000 (23:59 +0200)]
Cmake build: Simplify use of qt5 modules

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}

6 years agoCmake build: Adapt to compile with qt5.11
Kornel Benko [Sat, 9 Jun 2018 14:52:15 +0000 (16:52 +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.

6 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
6 years agoCmate tests: Amend aca3031
Kornel Benko [Sat, 9 Jun 2018 07:48:41 +0000 (09:48 +0200)]
Cmate tests: Amend aca3031

The script checkKeys.pl.in was mentioned but not added to the previous commit.

6 years agoCmake tests: Added check to inspect created pdf in test "AMS-import"
Kornel Benko [Sat, 9 Jun 2018 07:08:42 +0000 (09:08 +0200)]
Cmake tests: Added check to inspect created pdf in test "AMS-import"

If the command "comparepdf" is found, it will be used.
Also the script lyx_batch.pl is now easier to expand for
possible new comparision tools.

6 years ago Update fr.po
jpc [Fri, 8 Jun 2018 16:24:47 +0000 (18:24 +0200)]
 Update fr.po

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.

6 years agoFix up 3847e0ef7.
Richard Kimberly Heck [Wed, 6 Jun 2018 17:55:59 +0000 (13:55 -0400)]
Fix up 3847e0ef7.

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 agoCmake build: make editing of po-files on unix easier
Kornel Benko [Wed, 6 Jun 2018 15:03:12 +0000 (17:03 +0200)]
Cmake build: make editing of po-files on unix easier

Editing created po-file with a lokalization program like "linguist"
needs a hint to find the referenced sources.
Creating symbolic links helps.

6 years agoUpdate sk.po
Kornel Benko [Wed, 6 Jun 2018 09:48:33 +0000 (11:48 +0200)]
Update sk.po

6 years agoFix bug #7404.
Richard Heck [Mon, 2 Apr 2018 02:40:00 +0000 (22:40 -0400)]
Fix bug #7404.

This allows for external editing of ERT insets. Original patch
by Georg Baum. Updated to 2.4dev by Riki Heck.

6 years agoFix bug #991.
Richard Heck [Fri, 20 Apr 2018 03:33:40 +0000 (23:33 -0400)]
Fix bug #991.

Patch adapts Georg's work on #7404 to this case.

6 years agoUse getArg to read math-extern arguments
Jean-Marc Lasgouttes [Tue, 5 Jun 2018 09:24:05 +0000 (11:24 +0200)]
Use getArg to read math-extern arguments

This avoids a use of istringstream that coverity dislikes.

6 years agoconfigure.ac: update LYX_DATE
Scott Kostyshak [Mon, 4 Jun 2018 16:45:09 +0000 (12:45 -0400)]
configure.ac: update LYX_DATE

We update the date to 2018-02-24, which is the date of the 2.3.0
release. For discussion, see:

https://www.mail-archive.com/search?l=mid&q=11760986.J1Atc1jgU7%40amd64

6 years agoCatch exception in replaceEnvironmentPath
Jean-Marc Lasgouttes [Mon, 4 Jun 2018 08:51:11 +0000 (10:51 +0200)]
Catch exception in replaceEnvironmentPath

This exception in the regex constructor is only theoretical (our regex
are hardcoded), but this is creating coverity noise.

Additionally, revert the following commits that are not needed anymore:
6b6fa94c: Catch exceptions to please coverity
c2ed75fd: Fixup 6b6fa94c: coverity says there are more possible exceptions.

This commit is better viewed with 'git show -b'.

6 years agoCmake build: Adapt use of some variables
Kornel Benko [Sun, 3 Jun 2018 07:16:55 +0000 (09:16 +0200)]
Cmake build: Adapt use of some variables

1.) Rename LYX_PATCH_VERSION to LYX_RELEASE_VERSION.
  This matches the use in automake.
2.) Don't display LYX_DATE at configure time.
  This value is evaluated later at build time

6 years agoFixup c7496a11: test emptiness before accessing elements
Jean-Marc Lasgouttes [Fri, 1 Jun 2018 19:48:26 +0000 (21:48 +0200)]
Fixup c7496a11: test emptiness before accessing elements

6 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

6 years agoIf a master is being created at loading the child, un-hide it.
Juergen Spitzmueller [Fri, 1 Jun 2018 08:17:18 +0000 (10:17 +0200)]
If a master is being created at loading the child, un-hide it.

Fixes: #11162
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.

6 years agoRevert "Remove test for files when using batch mode."
Richard Kimberly Heck [Thu, 31 May 2018 03:13:07 +0000 (23:13 -0400)]
Revert "Remove test for files when using batch mode."

We are not really ready for this case.

This reverts commit e143f0b9e94c7285887ab98ff03841a6fe4883c0.

6 years agoRemove test for files when using batch mode.
Richard Kimberly Heck [Tue, 29 May 2018 19:48:56 +0000 (15:48 -0400)]
Remove test for files when using batch mode.

As Kornel pointed out, it's possible to give a command sequence, or
multiple "-x" arguments, and carry out an operation without actually
giving LyX a filename argument. This will lead to cases like:
    lyx -batch -x buffer-export
which don't do anything, but it's not catastrophic.

6 years agoFixup 7900e995: avoid null dereference
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:23:28 +0000 (15:23 +0200)]
Fixup 7900e995: avoid null dereference

Spotted by Coverity.

6 years agoFixup dd79338c: avoid hypothetical division by zero
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:18:01 +0000 (15:18 +0200)]
Fixup dd79338c: avoid hypothetical division by zero

Spotted by Coverity.

6 years agoFixup 57dc8175: initialize GuiCharacter::nospellcheck_
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:08:38 +0000 (15:08 +0200)]
Fixup 57dc8175: initialize GuiCharacter::nospellcheck_

Spotted by coverity.

6 years agoFixup 4e9084b3e4
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:00:04 +0000 (15:00 +0200)]
Fixup 4e9084b3e4

The reordering of the code was incorrect. The code calling Change::paintCue()
has to come last, since it depends on the change_drawn value.

Spotted by coverity.

6 years agoFixup a8fd12d1
Jean-Marc Lasgouttes [Mon, 28 May 2018 16:02:54 +0000 (18:02 +0200)]
Fixup a8fd12d1

Remove unused variables.

6 years agoCosmetics
Jean-Marc Lasgouttes [Mon, 28 May 2018 10:33:17 +0000 (12:33 +0200)]
Cosmetics

Use range-for in TextMetrics.cpp.

Rename InsetList::InsetTable to InsetList::Element.

6 years agoRemove trailing _ to local variable
Jean-Marc Lasgouttes [Mon, 28 May 2018 09:43:24 +0000 (11:43 +0200)]
Remove trailing _ to local variable

We reserve these to private members.

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.

6 years agoAdapt a testfile after commit 7a5184f and fix 5996b2e
Kornel Benko [Sun, 27 May 2018 12:31:35 +0000 (14:31 +0200)]
Adapt a testfile after commit 7a5184f and fix 5996b2e

6 years agoFix encoding problems in \input@path
Juergen Spitzmueller [Sun, 27 May 2018 09:54:07 +0000 (11:54 +0200)]
Fix encoding problems in \input@path

As of LaTeX2e 2018, characters are made active earlier, which results
in new expansion problems.

Following a suggestion of Markus Kohm (pc) and the TL mailing list [1],
we embrace non-ASCII input paths in \detokenize. This relies on e-tex,
but I think we can assume this is nowadays available everywhere.

[1] http://tug.org/pipermail/tex-live/2018-May/041691.html

Fixes: #11146
6 years agoUnbreak bibitem citations
Juergen Spitzmueller [Sun, 27 May 2018 09:49:10 +0000 (11:49 +0200)]
Unbreak bibitem citations

ENGINE_TYPE_DEFAULT includes the other two types. Thus we need to check
for multiple engines in parallel (and reintroduce the binary operators)

6 years agodisambiguate function name
Juergen Spitzmueller [Sun, 27 May 2018 07:56:45 +0000 (09:56 +0200)]
disambiguate function name

6 years agoDisable GUI for our batch tests if using QT5
Kornel Benko [Sat, 26 May 2018 11:30:30 +0000 (13:30 +0200)]
Disable GUI for our batch tests if using QT5

Thanks to Enrico for this params

6 years agoCmake batch tests: Generalize lists of files in test.
Kornel Benko [Fri, 25 May 2018 15:19:34 +0000 (17:19 +0200)]
Cmake batch tests: Generalize lists of files in test.

Each source file is to be copied to the test directory
Created files are to be compared to the corresponding expected file (if it is not set to "undef")

6 years agoCmake batch tests: Check also if all expected files are created
Kornel Benko [Fri, 25 May 2018 11:59:47 +0000 (13:59 +0200)]
Cmake batch tests: Check also if all expected files are created

6 years agoAdded testcase for ticket #11156
Kornel Benko [Thu, 24 May 2018 18:49:11 +0000 (20:49 +0200)]
Added testcase for ticket #11156
The test is named "AMS-import", with defined test-labels 'tex2lyx' and 'batch'

6 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.
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.

6 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

6 years agoFix wrong warning.
Juergen Spitzmueller [Mon, 21 May 2018 11:45:31 +0000 (13:45 +0200)]
Fix wrong warning.

6 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Mon, 21 May 2018 11:45:18 +0000 (13:45 +0200)]
Update tex2lyx tests

6 years agoSupport \cite command in tufte classes
Juergen Spitzmueller [Mon, 21 May 2018 11:43:16 +0000 (13:43 +0200)]
Support \cite command in tufte classes

This is an extra command used for sidenote citations. Since we do not
provide \cite with natbib (which tufte uses) as a choice, we use the
new AddToCiteEngine feature to add it.

File format change.

Fixes: #11150
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.

6 years agoAllow for cite engine and format definitions/modifications in layouts
Juergen Spitzmueller [Mon, 21 May 2018 10:46:53 +0000 (12:46 +0200)]
Allow for cite engine and format definitions/modifications in layouts

Now layout files and modules can extend the cite engines or completely
overwrite them, and modify the cite formats.

Any CiteEngine definition in a layout/module will completely overwrite
those by cite engine files.

AddToCiteEngine will extend them (add if they do not exist yet).

Any CiteFormat definition in a layout will be preferred to those in cite
engines. CiteFormat definitions that are not touched by the former are
still active, though (so, as opposed to CiteEngine, a CiteFormat does
not completely overwrite those by the engine files).

Layout format change.

6 years agoSimplify cite engines code
Juergen Spitzmueller [Sun, 20 May 2018 10:27:03 +0000 (12:27 +0200)]
Simplify cite engines code

As opposed to modules (from which the framework was initially borrowed),
we only allow one cite engine per document. Thus, we don't need to fiddle
with lists.

6 years agoFix bug #11151
Enrico Forestieri [Sat, 19 May 2018 19:33:29 +0000 (21:33 +0200)]
Fix bug #11151

6 years agoRemove insane list of requirements
Juergen Spitzmueller [Sat, 19 May 2018 08:28:50 +0000 (10:28 +0200)]
Remove insane list of requirements

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

6 years agocosmetics
Pavel Sanda [Tue, 15 May 2018 09:01:22 +0000 (11:01 +0200)]
cosmetics

6 years agoAvoid black screen on macOS
Jean-Marc Lasgouttes [Mon, 14 May 2018 07:46:54 +0000 (09:46 +0200)]
Avoid black screen on macOS

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

6 years agoImplement layout-toggle lfun
Jean-Marc Lasgouttes [Mon, 14 May 2018 21:58:42 +0000 (23:58 +0200)]
Implement layout-toggle lfun

This is like `layout', except that the layout is reset to default if
it was already correct. In the case of a selection, the layout is set
normally if some layouts in the selection are not at the required
layout; it is reset only if all the layouts of the selection already
have the required layout.

Part of ticket #9864.

6 years agoRemoved unused private variable
Jean-Marc Lasgouttes [Mon, 14 May 2018 21:03:50 +0000 (23:03 +0200)]
Removed unused private variable

Spotted by clang++ 6.

6 years agoCmake mingw build: Get rid of a cmake warning regarding policy CMP0020
Kornel Benko [Mon, 14 May 2018 15:29:45 +0000 (17:29 +0200)]
Cmake mingw build: Get rid of a cmake warning regarding policy CMP0020

For explanation see the output of 'cmake --help-policy CMP0020'

6 years agoClean up code of LFUN_LAYOUT
Jean-Marc Lasgouttes [Mon, 14 May 2018 14:33:52 +0000 (16:33 +0200)]
Clean up code of LFUN_LAYOUT

Factor out some code in helper functions. Improve getStatus so that
icon is selected only when the whole selection has the correct layout.

This work towards ticket #9864.

6 years ago Update fr.po
jpc [Mon, 14 May 2018 14:19:00 +0000 (16:19 +0200)]
   Update fr.po

6 years ago#11142 correct list of previous version to check for user directory contents
Stephan Witt [Sun, 13 May 2018 18:15:35 +0000 (20:15 +0200)]
#11142 correct list of previous version to check for user directory contents

LyX on Mac uses a user directory with version suffix. On change of the version suffix the existence of the directories with previous versions is checked and the latest one is used for a copy on first configure run. For 2.4 the candidate list starts with 2.3 now as it should.

6 years agoUpdate it.po
Enrico Forestieri [Sat, 12 May 2018 16:07:42 +0000 (18:07 +0200)]
Update it.po

6 years agoUpdate sk.po
Kornel Benko [Fri, 11 May 2018 17:52:08 +0000 (19:52 +0200)]
Update sk.po

6 years agoImplement InsetFloat::contentAlignment()
Juergen Spitzmueller [Fri, 11 May 2018 13:31:04 +0000 (15:31 +0200)]
Implement InsetFloat::contentAlignment()

6 years agoFix InsetBox::contentAlignment()
Juergen Spitzmueller [Fri, 11 May 2018 13:11:06 +0000 (15:11 +0200)]
Fix InsetBox::contentAlignment()

Some cases where alignment is possible were missing.

Candidate for 2.3.x.

6 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
6 years agoMerge paragraphs when pasted into an inset that forbids multipars
Juergen Spitzmueller [Fri, 11 May 2018 11:17:39 +0000 (13:17 +0200)]
Merge paragraphs when pasted into an inset that forbids multipars

Fixes: #8281
6 years agode.po: update
Juergen Spitzmueller [Fri, 11 May 2018 10:58:02 +0000 (12:58 +0200)]
de.po: update

6 years agoDocument float alignment settings
Juergen Spitzmueller [Fri, 11 May 2018 10:57:43 +0000 (12:57 +0200)]
Document float alignment settings

6 years agoAlign some strings
Juergen Spitzmueller [Fri, 11 May 2018 10:57:28 +0000 (12:57 +0200)]
Align some strings

6 years agoAvoid crash when trying to handle FitCursor
Jean-Marc Lasgouttes [Fri, 11 May 2018 09:27:26 +0000 (11:27 +0200)]
Avoid crash when trying to handle FitCursor

It is better to handle SinglePar before FitCursor, since the later
requires correct metrics at cursor position.

Fixes bug #11139 and probably #11125.