]> git.lyx.org Git - features.git/log
features.git
9 years agoForgot to add new beamer files to Makefile. 2.1.2
Richard Heck [Tue, 23 Sep 2014 14:20:21 +0000 (10:20 -0400)]
Forgot to add new beamer files to Makefile.

10 years agoSomething weird happened to the patch preamble.
Richard Heck [Tue, 16 Sep 2014 16:30:15 +0000 (12:30 -0400)]
Something weird happened to the patch preamble.

10 years agoMinor update to build script.
Richard Heck [Tue, 16 Sep 2014 16:12:50 +0000 (12:12 -0400)]
Minor update to build script.

10 years agoRemerge strings.
Richard Heck [Tue, 16 Sep 2014 16:08:09 +0000 (12:08 -0400)]
Remerge strings.

10 years agoStart prepration for 2.1.2.
Richard Heck [Tue, 16 Sep 2014 16:07:19 +0000 (12:07 -0400)]
Start prepration for 2.1.2.

10 years agoGMO file for French.
Richard Heck [Wed, 10 Sep 2014 20:30:33 +0000 (16:30 -0400)]
GMO file for French.

10 years agoUpdates to status file.
Richard Heck [Wed, 10 Sep 2014 20:30:07 +0000 (16:30 -0400)]
Updates to status file.

10 years agoNew French translation from Jean-Pierre, as well as translations of
Richard Heck [Wed, 10 Sep 2014 20:26:39 +0000 (16:26 -0400)]
New French translation from Jean-Pierre, as well as translations of
beamer.lyx and beamer-article.lyx.

10 years agoUpdate to Interlingua translation, from Giovanni.
Richard Heck [Wed, 10 Sep 2014 04:00:00 +0000 (00:00 -0400)]
Update to Interlingua translation, from Giovanni.

10 years agoUpdate GMO files.
Richard Heck [Tue, 9 Sep 2014 15:04:29 +0000 (11:04 -0400)]
Update GMO files.

10 years agoNew Japanese translation from Koji.
Richard Heck [Tue, 9 Sep 2014 13:59:10 +0000 (09:59 -0400)]
New Japanese translation from Koji.

10 years agoAdded pl.gmo (forgotten in last commit)
Kornel Benko [Tue, 2 Sep 2014 18:48:03 +0000 (20:48 +0200)]
Added pl.gmo (forgotten in last commit)

10 years agoCorrect some strings in po.pl to make it compilable.
Kornel Benko [Tue, 2 Sep 2014 18:40:54 +0000 (20:40 +0200)]
Correct some strings in po.pl to make it compilable.

10 years agoNew Polish translation from Michal.
Richard Heck [Tue, 2 Sep 2014 17:46:45 +0000 (13:46 -0400)]
New Polish translation from Michal.

10 years agoNew Swedish translation from Jim Rotmalm.
Richard Heck [Tue, 2 Sep 2014 01:51:48 +0000 (21:51 -0400)]
New Swedish translation from Jim Rotmalm.

10 years agoFrench translation from Jean-Pierre.
Richard Heck [Thu, 28 Aug 2014 17:39:12 +0000 (13:39 -0400)]
French translation from Jean-Pierre.

10 years agoRevert fix for #9231
Juergen Spitzmueller [Thu, 28 Aug 2014 06:22:47 +0000 (08:22 +0200)]
Revert fix for #9231

This is more complicated than I thought.

10 years agoFix the -geometry command line argument for Windows.
Enrico Forestieri [Mon, 25 Aug 2014 18:55:03 +0000 (20:55 +0200)]
Fix the -geometry command line argument for Windows.

The command line argument -geometry WIDTHxHEIGHT±XOFF±YOFF
specifies a preferred size and location for the main window.
Currently, this is semi-broken on Windows. Indeed, only
specifying WIDTH and HEIGHT places the main window such that
the left and top borders are invisible such that the window cannot
be moved. Moreover, the XOFF and YOFF parts (when present) are
used to specify the distance of the window from the left and top
or right and bottom edges of the screen, when using '+' or '-',
respectively. However, -geometry 800x600-20-20, instead of placing
the window such that its bottom and right edges are at a distance
of 20 pixels from the corresponding screen edges, places the
window such that its left and top borders are out of the screen.
This is corrected by this commit.

10 years agoNew Japanese translation from Koji.
Richard Heck [Sun, 24 Aug 2014 16:43:55 +0000 (12:43 -0400)]
New Japanese translation from Koji.

10 years agoRemerge strings.
Richard Heck [Fri, 15 Aug 2014 15:18:19 +0000 (11:18 -0400)]
Remerge strings.

10 years agoMerge branch '2.1.x' of git.lyx.org:lyx into 2.1.x
Kornel Benko [Fri, 15 Aug 2014 15:08:40 +0000 (17:08 +0200)]
Merge branch '2.1.x' of git.lyx.org:lyx into 2.1.x

10 years ago* sk.po
Kornel Benko [Fri, 15 Aug 2014 15:08:27 +0000 (17:08 +0200)]
* sk.po

10 years agoStart preparing ANNOUNCE file for 2.1.2.
Richard Heck [Fri, 15 Aug 2014 15:00:23 +0000 (11:00 -0400)]
Start preparing ANNOUNCE file for 2.1.2.

10 years agoMinor updates to status file.
Richard Heck [Fri, 15 Aug 2014 14:53:38 +0000 (10:53 -0400)]
Minor updates to status file.

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)