]>
git.lyx.org Git - lyx.git/log
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.
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.
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 )
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.
Enrico Forestieri [Sun, 9 Jul 2017 21:31:33 +0000 (23:31 +0200)]
Fix bug #10546
A labeled equation is also numbered.
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 )
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.
Juergen Spitzmueller [Sun, 2 Jul 2017 08:54:39 +0000 (10:54 +0200)]
natbibapa.module: Do not overwrite preamble.
Also add author information.
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 )
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.
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 )
Guillaume MM [Mon, 1 May 2017 23:36:23 +0000 (01:36 +0200)]
Fix crash with full view source (#10560 and #10617)
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 )
Juergen Spitzmueller [Fri, 16 Jun 2017 08:05:12 +0000 (10:05 +0200)]
Catch "! Incomplete \\if[x]" error
Fixes: #10666
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 )
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 )
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 )
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 )
Richard Heck [Wed, 7 Jun 2017 18:57:07 +0000 (14:57 -0400)]
Early updates to ANNOUNCE in preparation for 2.2.4.
Uwe Stöhr [Tue, 6 Jun 2017 21:35:33 +0000 (23:35 +0200)]
ja.po: updates from Koji
Richard Heck [Tue, 6 Jun 2017 20:42:11 +0000 (16:42 -0400)]
Remerge strings.
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.
Enrico Forestieri [Mon, 5 Jun 2017 21:14:48 +0000 (23:14 +0200)]
Fix bugs #9598 and #10650
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.
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 )
Scott Kostyshak [Sat, 3 Jun 2017 19:12:35 +0000 (15:12 -0400)]
zh_CN.po: updates from Su Baochen
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 )
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 )
Richard Heck [Mon, 29 May 2017 22:25:26 +0000 (18:25 -0400)]
Revert unintended part of commit that was causing changed output.
Richard Heck [Fri, 21 Oct 2016 02:56:40 +0000 (22:56 -0400)]
These two routines are now redundant.
(cherry picked from commit
c19794a01360a26824ddcabd82cde810e4d1867a )
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 )
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 )
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 )
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 )
Kornel Benko [Tue, 23 May 2017 15:24:57 +0000 (17:24 +0200)]
Update sk.po
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 )
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:05:19 +0000 (15:05 +0200)]
Set boundary correctly in getPosNearX
The code that looks whether neighbor block has a different direction
should look to the left or to the right depending on the direction of
the current block.
Fixes part of bug #10569
(cherry picked from commit
e3d252cd6256b32745b93c0cb0fd5170f448f91c )
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:08:50 +0000 (15:08 +0200)]
editXY: make cursor positionning correct over non editable inset
Instead of using complicated (and wrong) code, it is better to use
getPosNearX here.
Also simplify the code by removing temporary variables.
Fixes part of #10569.
(cherry picked from commit
6a0c1c65734e0f25eb4fcbfb8926c98b77117c29 )
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 14:56:06 +0000 (16:56 +0200)]
Work around bug in QTextLine::xToCursor
With RtL text, the method can be non-monotonic wrt x value (which is a
Qt bug). To work around this, we check whether positions adjacent to
those returned by xToCursor look better. Depending on whether the new
x position is too small or too large, we look backward or forward for
a better solution.
The performance is probably not great, but this is only needed for
user interactions, so the performance penalty should not be a problem.
Fixes part of #10569.
(cherry picked from commit
da590925cd6749587b9f500ecdaa457e34bc0f4a )
Enrico Forestieri [Sat, 20 May 2017 00:36:16 +0000 (02:36 +0200)]
Fix bug #10469
Uwe Stöhr [Tue, 16 May 2017 21:47:35 +0000 (23:47 +0200)]
Color.cpp: backport fix for bug #10656
Uwe Stöhr [Tue, 16 May 2017 21:44:32 +0000 (23:44 +0200)]
InsetFloat.cpp: backport fix for bug #10618
Juergen Spitzmueller [Mon, 1 May 2017 15:34:25 +0000 (17:34 +0200)]
Do not add symbols twice to Encoding::symbolsList()
Also sort the list properly.
Fixes #10644
Richard Heck [Tue, 16 May 2017 01:35:33 +0000 (21:35 -0400)]
Start 2.2.4 development.
Richard Heck [Mon, 8 May 2017 13:20:54 +0000 (09:20 -0400)]
Typos.
Richard Heck [Sun, 7 May 2017 16:36:01 +0000 (12:36 -0400)]
Prepare for 2.2.3.
Uwe Stöhr [Sat, 29 Apr 2017 14:00:36 +0000 (16:00 +0200)]
ia.po: updates for 2.2.3 from Giovanni
Uwe Stöhr [Mon, 24 Apr 2017 21:02:09 +0000 (23:02 +0200)]
lyx2lyx/lyx_2_2.py: backport another box reversion issue
Scott Kostyshak [Mon, 24 Apr 2017 05:18:10 +0000 (01:18 -0400)]
NEWS: fix typo
Uwe Stöhr [Sun, 23 Apr 2017 12:22:34 +0000 (14:22 +0200)]
Arabic Shortcuts.lyx: remove an inset-info
as reported on the lyx-docs list this inset prevents the compilation of the file on Mac OS
Uwe Stöhr [Sat, 22 Apr 2017 23:39:52 +0000 (01:39 +0200)]
Shortcuts.lyx: save with LyX 2.2.2
Changelog-UserGuide-LyX_22x.txt: document a missing translation
Uwe Stöhr [Sat, 22 Apr 2017 17:16:00 +0000 (19:16 +0200)]
Arabic doc files: some fine-tuning
a phantom does trick better than a space because the output won't be changed
Uwe Stöhr [Fri, 21 Apr 2017 22:35:38 +0000 (00:35 +0200)]
Win installer: prepare for LyX 2.2.3
Uwe Stöhr [Fri, 21 Apr 2017 22:05:51 +0000 (00:05 +0200)]
Arabic Intro.lyx: fix LyX logo in section headings
the previous commit changed the LyX logo to be in English but that broke the PDF bookmark text and also the TOC. The solution is to use the real logo and a short title with \texorpdfstring
Uwe Stöhr [Thu, 20 Apr 2017 21:53:18 +0000 (23:53 +0200)]
Arabic Intro.lyx: mark LTR text as English like we do for the Hebrew doc files
thanks to Mike from the lyx-docs list for this
Uwe Stöhr [Thu, 20 Apr 2017 20:38:19 +0000 (22:38 +0200)]
UserGuide.lyx: fix a typo
- also 2 formatting fixes
Uwe Stöhr [Thu, 20 Apr 2017 20:20:50 +0000 (22:20 +0200)]
backport fix for bug #10440
thanks Enrico!
Uwe Stöhr [Tue, 18 Apr 2017 21:53:27 +0000 (23:53 +0200)]
- backport fix for bug #10466
Handle the command \multicolumn correctly in math macros
Uwe Stöhr [Mon, 17 Apr 2017 20:13:46 +0000 (22:13 +0200)]
lyx2lyx/lyx_2_0.py: fix box reversion and conversion routines
Uwe Stöhr [Mon, 17 Apr 2017 19:06:47 +0000 (21:06 +0200)]
lyx2lyx/lyx_2_2.py: rewrite the box reversion routines
- will fix several bugs with nested boxes
Uwe Stöhr [Mon, 17 Apr 2017 13:26:17 +0000 (15:26 +0200)]
Revert "French Tutorial.lyx: some typographic fixes"
This reverts commit
2a10603c875c7936b006ac8e2bd4eb52a5ad2334 .
Uwe Stöhr [Mon, 17 Apr 2017 13:19:17 +0000 (15:19 +0200)]
doc files: update the changelogs
jpc [Mon, 17 Apr 2017 08:16:56 +0000 (10:16 +0200)]
Translate two remaining chunks
Uwe Stöhr [Mon, 17 Apr 2017 02:10:48 +0000 (04:10 +0200)]
PDF-form.lyx: some minor fixes
Uwe Stöhr [Sun, 16 Apr 2017 21:14:25 +0000 (23:14 +0200)]
doc files: improve 3 PDFs
Kornel Benko [Sun, 16 Apr 2017 19:15:35 +0000 (21:15 +0200)]
Update sk.po
Uwe Stöhr [Sun, 16 Apr 2017 18:06:28 +0000 (20:06 +0200)]
German EmbeddedObjects.lyx: correct an image path
Uwe Stöhr [Sun, 16 Apr 2017 17:57:59 +0000 (19:57 +0200)]
status.22x: the image update deserves an entry
Uwe Stöhr [Sun, 16 Apr 2017 17:54:51 +0000 (19:54 +0200)]
doc files: update more images
- the ERT example
- the Japanese screenshot images
- adapt the LyX files accordingly
Uwe Stöhr [Sun, 16 Apr 2017 17:09:48 +0000 (19:09 +0200)]
French Tutorial.lyx: some typographic fixes
- footnotes should be after the sentence dot
Uwe Stöhr [Sun, 16 Apr 2017 17:08:26 +0000 (19:08 +0200)]
doc files: update images
- as requested by a user we can use PostScript level 3 for EPS and PDF version 1.5
- he also requested to update the screenshot images
- rescale the SVG image to the CSS standard (96 dpi) as recommended by Inkscape
- update the docs files to the new screenshot image size
Uwe Stöhr [Sun, 16 Apr 2017 14:37:05 +0000 (16:37 +0200)]
lyx2lyx/lyx_2_2.py: fix 2 issues with the reversion of boxes
Uwe Stöhr [Sun, 16 Apr 2017 14:01:05 +0000 (16:01 +0200)]
de.po: use a more suitable translation
Uwe Stöhr [Sun, 16 Apr 2017 13:59:11 +0000 (15:59 +0200)]
French Math.lyx: a tiny correction
Uwe Stöhr [Sun, 16 Apr 2017 13:55:46 +0000 (15:55 +0200)]
French Math.lyx: revert [
ade28912 /lyxgit]
LyX 2.2.x can only handle the fileformat of LyX 2.2
(I kept the new translation)
Uwe Stöhr [Sun, 16 Apr 2017 13:46:27 +0000 (15:46 +0200)]
PDF-form.lyx: some corrections and updates
jpc [Sun, 16 Apr 2017 07:17:42 +0000 (09:17 +0200)]
Translate a sentence
Uwe Stöhr [Sat, 15 Apr 2017 02:59:30 +0000 (04:59 +0200)]
PDF-form.lyx: New German translation
- also many fixes and updates of the English version
- also some according fixes in de.po
Uwe Stöhr [Fri, 14 Apr 2017 16:02:00 +0000 (18:02 +0200)]
sv.po: updates from Jim
Uwe Stöhr [Thu, 13 Apr 2017 23:41:14 +0000 (01:41 +0200)]
Win installer: add package that is nowadays necessary to compile the PDF-form example file
Uwe Stöhr [Thu, 13 Apr 2017 23:05:35 +0000 (01:05 +0200)]
pt_BR.po: update from Georger
Uwe Stöhr [Thu, 13 Apr 2017 22:58:54 +0000 (00:58 +0200)]
Math.lyx: correct wrong info about \mathindent
Uwe Stöhr [Tue, 4 Apr 2017 21:54:31 +0000 (23:54 +0200)]
GuiDialog.cpp: remove question marks from Windows dialogs
backported from master, fixes bug #10098, patch from Guillaume
Uwe Stöhr [Tue, 4 Apr 2017 00:46:53 +0000 (02:46 +0200)]
pt_BR.po: update by Georger
Uwe Stöhr [Mon, 3 Apr 2017 22:22:17 +0000 (00:22 +0200)]
uk.po: update from Yuri
Enrico Forestieri [Sun, 2 Apr 2017 22:15:47 +0000 (00:15 +0200)]
Update it.po
Enrico Forestieri [Sun, 2 Apr 2017 22:07:53 +0000 (00:07 +0200)]
Fix bug #10554
The \lyxdeleted macro cannot cope with \newpage & co.
jpc [Sat, 1 Apr 2017 09:13:43 +0000 (11:13 +0200)]
Revert " Additions to record needed external applications and LaTeX packages"
This reverts commit
fe17ad57004b3a2e7404e3f7e42941dba77cd5eb .
Commit not appropriate after discussion on the list
jpc [Sat, 1 Apr 2017 08:47:35 +0000 (10:47 +0200)]
Update fr.po
jpc [Tue, 14 Feb 2017 15:24:41 +0000 (16:24 +0100)]
Additions to record needed external applications and LaTeX packages
needed fot ctest standard exports to run without failures
Juergen Spitzmueller [Sat, 1 Apr 2017 06:24:21 +0000 (08:24 +0200)]
de.po
Kornel Benko [Fri, 31 Mar 2017 20:33:08 +0000 (22:33 +0200)]
Update sk.po
Richard Heck [Fri, 31 Mar 2017 19:22:10 +0000 (15:22 -0400)]
Remerge strings.
Enrico Forestieri [Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)]
Fix #9732: Inconsistent font properties for the preview and superscript insets
(cherry picked from commit
b6f8a84a359d717a5d87f58a3403b3c6b64440e3 )
Enrico Forestieri [Fri, 3 Mar 2017 12:00:32 +0000 (13:00 +0100)]
Fix bug #10579
The \lyxdeleted macro cannot cope with empty lines.
(cherry picked from commit
5940dc53aab9fec6cd02f8be337f0e6c9b2e5fb1 )
Juergen Spitzmueller [Sun, 19 Mar 2017 15:15:03 +0000 (16:15 +0100)]
Consider text-mode accents of the form {\v a} in BiblioInfo
Fixes #9340.
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 18:54:15 +0000 (19:54 +0100)]
Fix crash when adding newline at the end of a paragraph
This is a regression at
b0673bd1 . The code referred to row.pit(),
which was not correctly initialized in this case. The bug does not
exist in master, since the code in redoParagraph has been cleaned-up
and row.pit() is always correct.
Two corrective measures are taken, each of which would fix the bug:
- do not use row.pit() in breakRow, but directly the pit parameter.
- initialize row.pit() correctly in the faulty case.
Enrico Forestieri [Sat, 4 Mar 2017 23:14:53 +0000 (00:14 +0100)]
Fix configuring for Qt 5.8
They moved the QT_QPA_DEFAULT_PLATFORM_NAME definition to the newly
introduced qtgui-config.h header.
Enrico Forestieri [Wed, 1 Mar 2017 08:19:18 +0000 (09:19 +0100)]
Allow Input of local includes from local layout files
When including files, LyX always searches the user and the system
directory, in that order. This means that when using local layout
files broken down into multiple includes, the various includes should
be specified with a path relative to the user layouts directory
(typically ~/.lyx/layouts), making this very impractical.
This commit allows including local files by specifying their path
as explicitly relative to the main layout file position, i.e., by
specifying their path with either "./" or "../". If the main layout
is not loaded from a local file, the usual search order is used,
even if the path are explicitly relative. So, for system layouts,
both "Input ./name.inc" and "Input name.inc" are equivalent.
(cherry picked from commit
17ab47b3e6acafae8f11e6363ee64252b26c81e7 )
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
Fix compilation with Qt5.8dev
(cherry picked from commit
6d375ddeac49ac8c6340398c9797354edca3f5d1 )