]> git.lyx.org Git - features.git/log
features.git
10 years ago* sk.po
Kornel Benko [Fri, 15 Aug 2014 15:08:27 +0000 (17:08 +0200)]
* sk.po

10 years agoPossible fix for the mystery crash, which is bug #9049.
Richard Heck [Thu, 7 Aug 2014 19:00:35 +0000 (15:00 -0400)]
Possible fix for the mystery crash, which is bug #9049.

Investigation of bug #9236 showed that crash to be due to a Paragraph's
holding a dangling pointer to an old and deleted Layout after the
DocumentClass was reset. Since the backtraces look almost identical, it
seems likely that we have the same problem here.

Since this crash seems almost always to involve tables, I looked at the
code in switchBetweenClasses() and found that the Paragraphs that belong
to "hidden" table cells are not seen by the initial recursion using a
ParIterator: It skips right over them. This was confirmed by test code
suggested by Enrico, with results reported in Trac.

The present patch attempts to deal with this problem in the second
recursion, over Insets. When we see an InsetTabular, we call a new
routine that recurses through the cells, looking for hidden ones. If it
finds a hidden one, it then resets the Layout for the cell's Paragraphs
(there should be only one, but we do not make any assumptions) to the
PlainLayout that belongs to the new DocumentClass. This is good enough,
since such cells never have content.

There is extensive discussion of the patch here:
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg185095.html
Additional testing by Enrico and me confirmed the existence of the
dangling pointer.

(cherry picked from commit 54c2ab2732f8094c0c119618d5b0e9a625ffb262)

10 years agoUse a const ref here. Guess it was a thinko when I did it.
Richard Heck [Tue, 12 Aug 2014 16:32:01 +0000 (12:32 -0400)]
Use a const ref here. Guess it was a thinko when I did it.

(cherry picked from commit b9fe1dd10b99386561872688e9a7affd4043b8c5)

10 years agoFix bug #9236: After we recreate the DocumentClass, we have to apply
Richard Heck [Wed, 6 Aug 2014 15:43:22 +0000 (11:43 -0400)]
Fix bug #9236: After we recreate the DocumentClass, we have to apply
it to the document.

(cherry picked from commit c2fdbbe01aa4f6c65bcfe391326ff35b8c6d219e)

10 years agoFix bug #9146 (Graphics conversion problem).
Enrico Forestieri [Mon, 4 Aug 2014 16:52:20 +0000 (18:52 +0200)]
Fix bug #9146 (Graphics conversion problem).

If LyX does not know about a given file format, it may easily
happen that the format is recognized as "latex" and this causes
bug #9146. This patch limits the check for a latex format to
non-binary files. The strategy for deciding that a file has
binary content is the same as that adopted by the "less" program.
This is a stripped down backport of the more complex fix in master.

10 years agoAdd some postscript and pdf viewers for Unix and Windows.
Enrico Forestieri [Sun, 3 Aug 2014 17:26:34 +0000 (19:26 +0200)]
Add some postscript and pdf viewers for Unix and Windows.

For Windows: AcroRd32, SumatraPDF and gsview (both 32 and 64 bit versions).
For Unix: qpdfview.

Qpdfview is a nice alternative to Okular for KDE users and a superior
alternative to Evince for Gnome users, due to its complete synctex
support. It only depends on Qt libraries for the graphical interface.

10 years agoUse getent instead of grepping /etc/passwd.
Enrico Forestieri [Sun, 3 Aug 2014 16:59:54 +0000 (18:59 +0200)]
Use getent instead of grepping /etc/passwd.

Forthcoming versions of cygwin will use a different mechanism for
obtaining passwd/group information based on /etc/nsswitch.conf.
Thus, it will not be guaranteed that the files /etc/passwd and
/etc/group even exist. The recommended way for obtaining those
info is by using the getent command, which already works in
current versions.

10 years agoFix compatibility issue with 64-bit cygwin.
Enrico Forestieri [Sun, 3 Aug 2014 16:53:33 +0000 (18:53 +0200)]
Fix compatibility issue with 64-bit cygwin.

10 years agoFix import of latex documents with scaled fonts.
Enrico Forestieri [Sun, 3 Aug 2014 16:42:04 +0000 (18:42 +0200)]
Fix import of latex documents with scaled fonts.

10 years agoFix bug with wrong baseline calculation in last paragraph
Juergen Spitzmueller [Sun, 3 Aug 2014 09:26:16 +0000 (11:26 +0200)]
Fix bug with wrong baseline calculation in last paragraph

Fixes: #9231
10 years agoDo not break documents with complex beamer block ERT usage we cannot handle
Juergen Spitzmueller [Sun, 3 Aug 2014 10:21:35 +0000 (12:21 +0200)]
Do not break documents with complex beamer block ERT usage we cannot handle

Fixes: #9144
10 years agoFix bug #9151 (Wrong reverse search for images and tables).
Enrico Forestieri [Sun, 3 Aug 2014 14:47:22 +0000 (16:47 +0200)]
Fix bug #9151 (Wrong reverse search for images and tables).

If the reverse position corresponds to an inset, its paragraph id
does not follow the main text numbering. Typically, an inset has
only a few paragraphs, so that we would jump near the beginning of
the document. Now the cursor in LyX jumps to the right spot.

10 years agoImprove parsing of ERT arguments in beamer block titles.
Juergen Spitzmueller [Fri, 1 Aug 2014 07:42:43 +0000 (09:42 +0200)]
Improve parsing of ERT arguments in beamer block titles.

Fixes: #9225
10 years agoFrench documentation files: 2 fixes by Jan-Pierre
Uwe Stöhr [Sun, 27 Jul 2014 22:56:57 +0000 (00:56 +0200)]
French documentation files: 2 fixes by Jan-Pierre

10 years agoFix bugs 9190 and 9193.
Enrico Forestieri [Sun, 27 Jul 2014 22:33:13 +0000 (00:33 +0200)]
Fix bugs 9190 and 9193.

The conversion from floating point to string performed by
boost:lexical_cast does not allow specifying a precision and,
for example, values such as 0.9 are returned as 0.899999976.
The standard C++ way for performing the conversion is using
std::ostringstream which is exempt from this problem, even if
less efficient. For the sake of accuracy, boost::lexical_cast
is ditched in favor of the ostrinsgstream implementation.
In C++11 another option would be using std::to_string, but I
think it is not as efficient as the boost way and not worth
implementing through #ifdef's.

10 years agoFix beamer block conversion when arguments are in multiple ERTS.
Juergen Spitzmueller [Sun, 27 Jul 2014 09:30:25 +0000 (11:30 +0200)]
Fix beamer block conversion when arguments are in multiple ERTS.

Fixes second part of #9208.

10 years agoAdd beamer-resenumerate (from our wiki) to the list of safe modules for argument...
Juergen Spitzmueller [Sun, 27 Jul 2014 08:23:17 +0000 (10:23 +0200)]
Add beamer-resenumerate (from our wiki) to the list of safe modules for argument conversion, since it is safe.

Fixes part of #9208.

10 years agoWhitespace
Juergen Spitzmueller [Sun, 27 Jul 2014 10:26:37 +0000 (12:26 +0200)]
Whitespace

10 years agoFix typos in InsetListingsParams validator
Juergen Spitzmueller [Tue, 6 May 2014 18:17:03 +0000 (20:17 +0200)]
Fix typos in InsetListingsParams validator

10 years agoStore InsetListingsParams in a vector of pairs, not a map, since order of insertion...
Juergen Spitzmueller [Tue, 6 May 2014 18:22:25 +0000 (20:22 +0200)]
Store InsetListingsParams in a vector of pairs, not a map, since order of insertion matters.

Fixes: #8144, #5203.
10 years agoBackport 'select word on double click at boundary'
Scott Kostyshak [Fri, 13 Jun 2014 13:43:26 +0000 (09:43 -0400)]
Backport 'select word on double click at boundary'

Now when double clicking on a boundary of a word, the
word is selected. This also causes single-letter words
to now be selected (fixes #9159).

Backported from bcbc162.

10 years agoDo not forget last word of paragraph in completion
Jean-Marc Lasgouttes [Fri, 16 May 2014 13:17:10 +0000 (15:17 +0200)]
Do not forget last word of paragraph in completion

With the old code, the last word of a paragraph would not be added in
the completion list. The key difference is to pass `from' instead of `pos'
to FontList::fontiterator.

Slight cleanup of the code.

10 years agoFix error spotted by cppcheck
Jean-Marc Lasgouttes [Sat, 19 Jul 2014 22:04:45 +0000 (00:04 +0200)]
Fix error spotted by cppcheck

10 years agoFix bug #9162: Missing \use_indices
Georg Baum [Wed, 9 Jul 2014 18:58:44 +0000 (20:58 +0200)]
Fix bug #9162: Missing \use_indices

The lyx2lyx conversion for format 352 was incomplete: It should have been
added the \use_indices setting, but it relied on the fact that the default in
LyX for missing \use_indices is the same as the old format without that
setting used. However, the default might change in the future, and later
lyx2lyx conversions rely on that setting as well.

10 years agoMake GraphicsConverter threadsafe
Georg Baum [Mon, 7 Jul 2014 20:31:11 +0000 (22:31 +0200)]
Make GraphicsConverter threadsafe

build_script() was already threadsafe, since it used a TempFile, and the
counter was basically not needed, but the new solution makes this obvious
and has the additional advantage that TempFile constructs the real output
file, not a dummy without extension which is not needed.

10 years agoFix uncodable author warning
Georg Baum [Mon, 7 Jul 2014 20:22:25 +0000 (22:22 +0200)]
Fix uncodable author warning

The old code was not threadsafe, and the restriction to one message box per
author name did not work if more than two authors were uncodable.

10 years agoFix LaTeXFeatures::useLayout() recursion test
Georg Baum [Mon, 7 Jul 2014 20:16:13 +0000 (22:16 +0200)]
Fix LaTeXFeatures::useLayout() recursion test

It was broken in two ways: It was not threadsafe, and it did never detect
any recursion, since the counter was decremented for each non-recursive call
and never incremented again.

10 years agoMake LaTeX export threadsafe.
Georg Baum [Mon, 7 Jul 2014 20:14:28 +0000 (22:14 +0200)]
Make LaTeX export threadsafe.

This is one of the more important threadsafety issues because of export in
thread and simultanous view source. The solution is ugly, but a better one
(see FIXME) would require major rework. These static variables should not
have been used in the first place IMHO.

10 years agoMake BufferList::fileNames() threadsafe
Georg Baum [Mon, 7 Jul 2014 20:05:10 +0000 (22:05 +0200)]
Make BufferList::fileNames() threadsafe

Using a static variable here was premature optimization: fileNames() is only
called from GuiRef (directly or indirectly), and since this is a dialog the
copying of a FileNameList is not noticeable at all.

10 years agoMake createBufferTmpDir() threadsafe
Georg Baum [Mon, 7 Jul 2014 20:03:32 +0000 (22:03 +0200)]
Make createBufferTmpDir() threadsafe

This must not use thread local storage, since the generated directories are
all in the same parent directory which is unique per running LyX instance.

10 years agoMake DocFileName::mangledFileName() threadsafe
Georg Baum [Mon, 7 Jul 2014 20:01:58 +0000 (22:01 +0200)]
Make DocFileName::mangledFileName() threadsafe

10 years agoMake preview filename generation threadsafe
Georg Baum [Mon, 7 Jul 2014 19:58:24 +0000 (21:58 +0200)]
Make preview filename generation threadsafe

Threadsafety is ensured by the atomic file name generation in TempFile.

10 years agoBackport temp file changes from bf782ee
Georg Baum [Mon, 7 Jul 2014 19:56:36 +0000 (21:56 +0200)]
Backport temp file changes from bf782ee

This is a tiny part of the commit which is needed for other thread-safety
fixes.

10 years agoMake newUnnamedFile() threadsafe
Georg Baum [Mon, 7 Jul 2014 19:38:39 +0000 (21:38 +0200)]
Make newUnnamedFile() threadsafe

10 years agoMake BufferParams::auto_packages() threadsafe
Georg Baum [Mon, 7 Jul 2014 19:37:11 +0000 (21:37 +0200)]
Make BufferParams::auto_packages() threadsafe

10 years agoMake include and bibitem insets threadsafe
Georg Baum [Mon, 7 Jul 2014 19:35:53 +0000 (21:35 +0200)]
Make include and bibitem insets threadsafe

Using a mutex to ensure that the generated filenames and ids are still unique.

10 years agoMake Formats::isZippedFile() threadsafe
Georg Baum [Mon, 7 Jul 2014 19:34:54 +0000 (21:34 +0200)]
Make Formats::isZippedFile() threadsafe

In this case I use a mutex, so the zip status of files is shared between
threads. This is possible because a deadlock can't happen, and it should give
better performance.

10 years agoMake theWordList() thread safe.
Georg Baum [Sun, 6 Jul 2014 16:12:57 +0000 (18:12 +0200)]
Make theWordList() thread safe.

Without this, you get crashes in a few second when you set the autosave
interval to one second and edit quickly (typing new words etc). The reason
is that the cloned buffer wants to insert words into the word list and
remove them again, but it lives in a different thread.

10 years agoReset after 2.1.1 release
Georg Baum [Sun, 6 Jul 2014 16:02:56 +0000 (18:02 +0200)]
Reset after 2.1.1 release

10 years agoStart 2.1.2.
Richard Heck [Sun, 6 Jul 2014 14:30:17 +0000 (15:30 +0100)]
Start 2.1.2.

10 years agoPrepare for 2.1.1. 2.1.1
Richard Heck [Wed, 2 Jul 2014 20:29:58 +0000 (16:29 -0400)]
Prepare for 2.1.1.

10 years agoRemerge strings.
Richard Heck [Wed, 2 Jul 2014 20:12:26 +0000 (16:12 -0400)]
Remerge strings.

10 years agofr.po: last minute changes from Jean-Pierre
Uwe Stöhr [Mon, 30 Jun 2014 23:50:49 +0000 (01:50 +0200)]
fr.po: last minute changes from Jean-Pierre

10 years agoThe flush should be done on either branch.
Richard Heck [Sun, 29 Jun 2014 19:40:17 +0000 (15:40 -0400)]
The flush should be done on either branch.
(cherry picked from commit c2de96d2edd98fd2de11876f6557ba1695693c87)

10 years agoUpdate it.po
Enrico Forestieri [Sat, 28 Jun 2014 17:23:03 +0000 (19:23 +0200)]
Update it.po

10 years agofr.po: some more fixes from Ignacio
Uwe Stöhr [Thu, 26 Jun 2014 22:54:53 +0000 (00:54 +0200)]
fr.po: some more fixes from Ignacio

10 years agoCmake build: Added user choise of QT version to use.
Kornel Benko [Thu, 26 Jun 2014 07:39:47 +0000 (09:39 +0200)]
Cmake build: Added user choise of QT version to use.

To use Qt5 one has to configure with:
        cmake .... -DLYX_USE_QT=QT5
Default is QT4, so on systems without Qt4 the QT5 choice is mandatory.

10 years agosv.po: translations for LyX 2.1.1 from Jim
Uwe Stöhr [Wed, 25 Jun 2014 22:19:50 +0000 (00:19 +0200)]
sv.po: translations for LyX 2.1.1 from Jim

10 years agofr.po: fix shortcut conflicts, patch from Jean-Pierre
Uwe Stöhr [Wed, 25 Jun 2014 22:14:22 +0000 (00:14 +0200)]
fr.po: fix shortcut conflicts, patch from Jean-Pierre

10 years agoes.po: translations from Ignacio
Uwe Stöhr [Fri, 20 Jun 2014 23:40:07 +0000 (01:40 +0200)]
es.po: translations from Ignacio

10 years agofr.po: updates from Jean-Pierre
Uwe Stöhr [Fri, 20 Jun 2014 23:24:51 +0000 (01:24 +0200)]
fr.po: updates from Jean-Pierre

10 years agoja.po: updates for LyX 2.1.1 from Koji
Uwe Stöhr [Fri, 20 Jun 2014 23:06:45 +0000 (01:06 +0200)]
ja.po: updates for LyX 2.1.1 from Koji

10 years agouk.po: translations for LyX 2.1.1 from Yuri
Uwe Stöhr [Fri, 20 Jun 2014 22:57:58 +0000 (00:57 +0200)]
uk.po: translations for LyX 2.1.1 from Yuri

10 years ago* sk.po: spellchecker changes
Kornel Benko [Wed, 18 Jun 2014 14:18:13 +0000 (16:18 +0200)]
* sk.po: spellchecker changes

10 years agoRestructure ANNOUCE file a bit.
Richard Heck [Tue, 17 Jun 2014 20:05:03 +0000 (16:05 -0400)]
Restructure ANNOUCE file a bit.

10 years agoFix license string according to http://spdx.org/licenses/.
Pavel Sanda [Tue, 17 Jun 2014 16:50:28 +0000 (09:50 -0700)]
Fix license string according to http://spdx.org/licenses/.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184749.html

10 years agoRemerge strings.
Richard Heck [Mon, 16 Jun 2014 21:42:16 +0000 (17:42 -0400)]
Remerge strings.

10 years agode.po: update
Juergen Spitzmueller [Mon, 16 Jun 2014 20:36:27 +0000 (22:36 +0200)]
de.po: update

10 years ago* sk.po, new strings
Kornel Benko [Mon, 16 Jun 2014 15:59:56 +0000 (17:59 +0200)]
* sk.po, new strings

10 years agoBackup the existing LyX file before attempting to write the new one.
Richard Heck [Mon, 9 Jun 2014 21:35:17 +0000 (17:35 -0400)]
Backup the existing LyX file before attempting to write the new one.
This avoids dataloss in case we are unable to write the new one after
all.

A more sophisticated approach, due to Georg, is in master, but it needs
more testing that it will be able to get before the release of 2.1.1.
That should be committed to 2.1.x when it is ready and this patch backed
out again.

10 years agoRevert "Use a different naming scheme, per Enrico's suggestion."
Richard Heck [Mon, 9 Jun 2014 19:28:56 +0000 (15:28 -0400)]
Revert "Use a different naming scheme, per Enrico's suggestion."
This reverts commit fff454fa4bde75ca3554fc4b22cfcad6f36b026d.

Revert "Per a suggestion of JMarc's, first write the saved file to a"
This reverts commit 094129f804ad6f81de833d8957db42d0991b6882.

10 years agoOn Linux show in crash message box the backtrace
Peter Kümmel [Sat, 7 Jun 2014 09:12:31 +0000 (11:12 +0200)]
On Linux show in crash message box the backtrace

10 years agoFrench Math.lyx: updates by Jean-Pierre
Uwe Stöhr [Thu, 12 Jun 2014 23:26:06 +0000 (01:26 +0200)]
French Math.lyx: updates by Jean-Pierre

10 years agoFrench UserGuide.lyx: updates by Jean-Pierre
Uwe Stöhr [Thu, 12 Jun 2014 23:09:10 +0000 (01:09 +0200)]
French UserGuide.lyx: updates by Jean-Pierre

10 years agofr.po: a fixed typo by Jan-Pierre
Uwe Stöhr [Thu, 12 Jun 2014 22:44:11 +0000 (00:44 +0200)]
fr.po: a fixed typo by Jan-Pierre

10 years agoia.po: updates for 2.1.1 from Giovanni
Uwe Stöhr [Thu, 12 Jun 2014 22:42:18 +0000 (00:42 +0200)]
ia.po: updates for 2.1.1 from Giovanni

10 years agoSet the default locale at startup.
Enrico Forestieri [Wed, 11 Jun 2014 17:08:44 +0000 (19:08 +0200)]
Set the default locale at startup.

On startup, the default locale is "C", meaning that all system
functions assume an ascii codeset. The environment's locale
settings should be selected by calling setlocale(LC_ALL,"").
This is done by Qt during the QCoreApplication initialization
but this inizialization is never performed for batch processing
and, as a result, LyX is not able to process files whose names
contain non-ascii characters. This is not an issue on Windows,
where the file names are always stored as UTF-16, so the call is
only performed for unix-like platforms (this also includes cygwin,
due to its own filenames management that allows using characters
which are forbidden to native programs).

10 years agoFix bug #9153 (Using mathpanel to insert matrix creates extra space on top)
Enrico Forestieri [Sun, 8 Jun 2014 21:59:59 +0000 (23:59 +0200)]
Fix bug #9153 (Using mathpanel to insert matrix creates extra space on top)

The code was setting the current index before filling the
combo box items.

10 years agoFix crash when accepting change
Jean-Marc Lasgouttes [Thu, 5 Jun 2014 10:18:09 +0000 (12:18 +0200)]
Fix crash when accepting change

The problem is the use of cursor movement methods to update cursor.
Cursor::forwardPos() steps into insets, which is not always what we
want. The problem here is that there is a math inset just after the
accepted change, and that the cursor steps into it for some reason.

This code is a nightmare anyway.

Fixes: bug #9145
10 years agoUse a different naming scheme, per Enrico's suggestion.
Richard Heck [Wed, 4 Jun 2014 16:46:42 +0000 (12:46 -0400)]
Use a different naming scheme, per Enrico's suggestion.
(cherry picked from commit 533a05e0b8e3433cdea2c239700904406b9b683e)

10 years agoFlush stream more often to help figure out where the mystery crash
Richard Heck [Tue, 3 Jun 2014 17:35:18 +0000 (13:35 -0400)]
Flush stream more often to help figure out where the mystery crash
originates.
(cherry picked from commit 5536b0c7fef6115d82437285fd3e6b17ae9ccc39)

10 years agoUpdate ANNOUNCE file.
Richard Heck [Tue, 3 Jun 2014 15:59:55 +0000 (11:59 -0400)]
Update ANNOUNCE file.

10 years ago* sk.po
Kornel Benko [Wed, 4 Jun 2014 10:29:08 +0000 (12:29 +0200)]
* sk.po

10 years agoMake TextMetrics::editXY more robust
Jean-Marc Lasgouttes [Tue, 27 May 2014 13:14:14 +0000 (15:14 +0200)]
Make TextMetrics::editXY more robust

This fixes a crash in examples/fa/splash.lyx when selecting text
representing menu entries. This happens because menu names are in LTR
English, while the inset itself is in RTL.

The problem is that the current code relies on the fact that
 1. getColumnNearX and checkInsetHit share the same idea about cursor
    position.
 2. pos and pos + 1 are in general consecutive on screen.

It seems that 1. is wrong here (for reasons I did not try to
understand); the second assumption is definitely false with
bi-directional text. This makes editXY very fragile.

The new code should be more robust in this respect. The logic is:
 * if checkInsetHit finds an inset, use its position,
 * otherwise, ask getColumnNearX for the cursor position.

Fixes: #9142
10 years agode.po: update
Juergen Spitzmueller [Wed, 4 Jun 2014 08:39:14 +0000 (10:39 +0200)]
de.po: update

10 years agofr.po: updates for 2.1.1 from Jean-Pierre
Uwe Stöhr [Wed, 4 Jun 2014 00:52:44 +0000 (02:52 +0200)]
fr.po: updates for 2.1.1 from Jean-Pierre

10 years agoPer a suggestion of JMarc's, first write the saved file to a
Richard Heck [Tue, 3 Jun 2014 14:42:07 +0000 (10:42 -0400)]
Per a suggestion of JMarc's, first write the saved file to a
temporary name, then move it to its real location if we succeed.
This prevents our over-writing the existing file with a corrupt
one.
(cherry picked from commit 10364082c8351b0f4a258699742370195aadde6b)

10 years agoCopy over changes to lyx2lyx made in master. Unfortunately, some of
Richard Heck [Thu, 29 May 2014 22:17:08 +0000 (18:17 -0400)]
Copy over changes to lyx2lyx made in master. Unfortunately, some of
these got committed to stable and some did not, and now it is all but
impossible (I've tried) to do this by cherry-picking.

10 years agoFix reversion of box insets.
Enrico Forestieri [Thu, 29 May 2014 08:44:02 +0000 (10:44 +0200)]
Fix reversion of box insets.
(cherry picked from commit da75d3194824c87e2b2fc92fa4644e080aeaf962)

10 years agoDo not corrupt documents without newline at EOF
Georg Baum [Thu, 29 May 2014 11:15:07 +0000 (13:15 +0200)]
Do not corrupt documents without newline at EOF

trim_eol() assumes that a line always ends either with \n, \r, or \r\n.
This assumption is always valid except for the last line of a document, since it
may miss the trailing newline. LyX does not create such documents, bu they may
result from automatic creation tools, and LyX can read them, so lyx2lyx should
be able to read them as well.
(cherry picked from commit c75c6e446a8bc0dbaabaf156c0abfd622c050129)

Fix the fix

MAC-style (pre-OS X) line ends were not recognized anymore
(cherry picked from commit 55af9cb006563032e35fcc8bc5c8c1284c0344da)

10 years agoAvoid processing multiple times the same paragraph when converting latex arguments.
Enrico Forestieri [Thu, 29 May 2014 09:05:34 +0000 (11:05 +0200)]
Avoid processing multiple times the same paragraph when converting latex arguments.
(cherry picked from commit 00802019771bd1b9779d3b39899089abfc38201f)

10 years agoFix an off-by-one error in the reversion of beamer documents.
Enrico Forestieri [Thu, 29 May 2014 08:55:30 +0000 (10:55 +0200)]
Fix an off-by-one error in the reversion of beamer documents.
(cherry picked from commit dbd4d781dcbe73d347a76fed9ca51faf2841e133)

10 years agoFix indentation of paragraphs after an environment.
Enrico Forestieri [Wed, 28 May 2014 20:16:40 +0000 (22:16 +0200)]
Fix indentation of paragraphs after an environment.

When deciding whether a paragraph should be indented or not, LyX
only takes into account default layouts. This is wrong, because
an environment could be nested into another one and thus a following
paragraph would not be "default". With this patch all paragraphs
after an environment are correctly indented, independently of
whether their layouts are "default" or not.
The latex output (which was modeled following the previous wrong
assumption) is also correspondingly adapted.

No status line needed as this is the completion of previous patches.

10 years agoFix another glitch with on-screen indentation.
Enrico Forestieri [Sat, 24 May 2014 00:12:56 +0000 (02:12 +0200)]
Fix another glitch with on-screen indentation.

If a new paragraph is created just before a nested environment,
the indentation of the nested environment is not computed
correctly because the parindent of the previous layout would
also be erroneously taken into account. This would cause the
nested environment to move back and forth when something is
added to the new paragraph.

A proper status line covering this change is already present.

10 years agoImprove the fix for #9131. We were previously counting passes
Richard Heck [Fri, 23 May 2014 15:19:14 +0000 (11:19 -0400)]
Improve the fix for #9131. We were previously counting passes
through this routine, which means: one for every character, more
or less. So long strings would hit the "recursion limit". But what
we are worried about is an infinite loop caused by misues of macros,
so that is what we need to count.

10 years agoFix bug #9131 for stable branch. The real problem lies
Richard Heck [Fri, 23 May 2014 14:59:12 +0000 (10:59 -0400)]
Fix bug #9131 for stable branch. The real problem lies
elsewhere, but it will require major surgery and, more
importantly, a file format change.

10 years agoFix another crash similar to #9030
Georg Baum [Thu, 22 May 2014 20:04:09 +0000 (22:04 +0200)]
Fix another crash similar to #9030

This one occured after the fix for bug #9030 if the cursor is in a math inset
and the edit menu is opened.

10 years agoFix wrong indentation on screen.
Enrico Forestieri [Wed, 21 May 2014 21:59:53 +0000 (23:59 +0200)]
Fix wrong indentation on screen.

LyX fails to indent on screen a standard paragraph when it is
nested into an environment. The fix is a one-liner but the diff
is larger because it also fixes a previous wrong indentantion
in the source ;)

No status line needed because this is an extension of f5a246b1.

10 years ago* Additional.lyx - note for windows git users.
Pavel Sanda [Wed, 21 May 2014 18:06:52 +0000 (11:06 -0700)]
* Additional.lyx - note for windows git users.

https://www.mail-archive.com/lyx-users%40lists.lyx.org/msg98988.html

10 years agoOutput arguments required by arguments with default or preset arg
Juergen Spitzmueller [Wed, 21 May 2014 11:12:14 +0000 (13:12 +0200)]
Output arguments required by arguments with default or preset arg

Fixes: #9128
10 years agoFix nesting in some beamer reversion methods.
Juergen Spitzmueller [Wed, 21 May 2014 09:37:51 +0000 (11:37 +0200)]
Fix nesting in some beamer reversion methods.

Patch by Enrico

10 years agoFix reversion of beamer overprint when a nested paragraph has an argument
Juergen Spitzmueller [Wed, 21 May 2014 09:36:47 +0000 (11:36 +0200)]
Fix reversion of beamer overprint when a nested paragraph has an argument

10 years agoUgly fix for bug #9102
Georg Baum [Mon, 19 May 2014 19:50:34 +0000 (21:50 +0200)]
Ugly fix for bug #9102

The real problem is the encoding of latex_language: It is hardcoded to latin1,
but InsetListig uses the currently active encoding. Therefore, we cannot tell
whether any given character wil be encodable or not, and we should not prevent
non-ACII characters.
In the future, we need to make the encoding of latex_language dynamic, so that
it always represents the currently active encoding. Then, we could do the
correct check both for listings and ERT. For now, I simply disabled the
encoding check for listings, which also means that bug 9012 might occur in
other cases for listings, but this is less important than bug 9102.

10 years agoFix crash when right-clicking into an inset with more paragraphs than the main text.
Juergen Spitzmueller [Sun, 18 May 2014 16:08:43 +0000 (18:08 +0200)]
Fix crash when right-clicking into an inset with more paragraphs than the main text.

Fixes: #9123.
10 years agoAdd limits to searches in convert_TeX_brace_to_Argument.
Richard Heck [Thu, 15 May 2014 13:35:05 +0000 (09:35 -0400)]
Add limits to searches in convert_TeX_brace_to_Argument.
(cherry picked from commit eb26d85dc9622012b52c58b5cebb2921cf27f8dd)

10 years agoAdapt output to the on-screen representation.
Enrico Forestieri [Sat, 17 May 2014 20:05:07 +0000 (22:05 +0200)]
Adapt output to the on-screen representation.

LyX assumes that a standard paragraph following a layout with
NextNoIndent==false has to be indented on screen, so output the
necessary blank line to make it so also in the output.

10 years agoFix an on-screen representation glitch.
Enrico Forestieri [Fri, 16 May 2014 19:58:21 +0000 (21:58 +0200)]
Fix an on-screen representation glitch.

If a layout has NextNoIndent set to true, the following paragraph
is not indented on screen. LyX checks the previous layout for that
style parameter to decide whether to indent or not. Of course,
what matters is the latex output and the on-screen representation
should match this output. Now, when a layout has NextNoIndent==true,
the latex output is correctly not indented, while the on-screen
representation may fail to match this output. This can occur when,
for example, a standard paragraph is nested in the previous layout,
because LyX would check the property of the nested layout instead
of the container layout. Thus, LyX should check the property of a
previous layout at the same depth for correctly deciding whether
a paragraph has to be indented or not.
See also http://www.lyx.org/trac/ticket/9055#comment:12 for an
example document where the previous scenario actually occurs.

10 years agoFix bug #9112: There is a test here that seems intended to catch the
Richard Heck [Thu, 8 May 2014 22:19:55 +0000 (18:19 -0400)]
Fix bug #9112: There is a test here that seems intended to catch the
case where there are unbalanced braces, but it comes too late. In that
case, we try to check cmd[docstring::npos] and crash.
(cherry picked from commit 6b0a8fbc9614433e7db4e6f994fd62886da8b8eb)

10 years agoBeamer block conversion: consider ERT arguments with leading/trailing blanks
Juergen Spitzmueller [Thu, 8 May 2014 17:52:01 +0000 (19:52 +0200)]
Beamer block conversion: consider ERT arguments with leading/trailing blanks

Should also go to branch.

10 years agoMonolingualization
Juergen Spitzmueller [Thu, 8 May 2014 06:36:38 +0000 (08:36 +0200)]
Monolingualization