[LyX/2.1.x] Make the fix for bug 8999 actually work

2014-11-14 Thread Georg Baum
commit 8b31f838c5ceab2cc9aae03e31cdcc673c2a4381 Author: Georg Baum Date: Fri Nov 14 21:28:40 2014 +0100 Make the fix for bug 8999 actually work This backports 1cdbb94f which was spotted by cppcheck. diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index f39112c

[LyX/master] Load footmisc.sty instead of using outdated code

2014-11-14 Thread Georg Baum
commit 0bf8b8a1d234c31cc2708e80e41c55dfefacec93 Author: Georg Baum Date: Fri Nov 14 20:20:35 2014 +0100 Load footmisc.sty instead of using outdated code This is a patch I originally sent to lyx-devel in 2012 with subject 'Load footmisc.sty instead of using copied code

[LyX/2.1.x] Fix bug #7954 (now really)

2014-11-14 Thread Georg Baum
commit acc771b2123797c42463c1a564f4934f2b3bef41 Author: Georg Baum Date: Fri Nov 14 19:09:34 2014 +0100 Fix bug #7954 (now really) Thanks to maciejr we know now what the remaining problem was with bug 7954: My unicode symbol fallback works fine, the problem was that a font

[LyX/2.1.x] Fix memory errors found by Alfredo with valgrind

2014-11-12 Thread Georg Baum
commit 24426cc614685503024a1ba46d99b6bbb832c92e Author: Georg Baum Date: Wed Nov 12 20:31:32 2014 +0100 Fix memory errors found by Alfredo with valgrind BufferParams::setDocumentClass() deletes the old document class of the buffer and creates a copy of the new one. Therefore

[LyX/master] Fix memory errors found by Alfredo with valgrind

2014-11-11 Thread Georg Baum
commit 5deaaa3b137c7055bab66134c3e32c1777988253 Author: Georg Baum Date: Tue Nov 11 07:42:54 2014 +0100 Fix memory errors found by Alfredo with valgrind BufferParams::setDocumentClass() deletes the old document class of the buffer and creates a copy of the new one. Therefore

[LyX/master] Prevent accidental usage of wrong copy constructor

2014-11-11 Thread Georg Baum
commit 8f93600d3fa8182ba43973075cf37e7ecb2be8d3 Author: Georg Baum Date: Tue Nov 11 07:22:14 2014 +0100 Prevent accidental usage of wrong copy constructor diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 103428a..37e26a8 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp

[LyX/master] Add missing license information for rsfs10.ttf.

2014-10-14 Thread Georg Baum
commit a970df2a139747d456dbeb35b6db10fb39805615 Author: Georg Baum Date: Tue Oct 14 21:39:06 2014 +0200 Add missing license information for rsfs10.ttf. diff --git a/lib/fonts/ReadmeBaKoMa4LyX.txt b/lib/fonts/ReadmeBaKoMa4LyX.txt index d158d7c..1916af0 100644 --- a/lib/fonts

[LyX/master] Support new languages in tex2lyx

2014-07-10 Thread Georg Baum
commit 98fc5e518f0c692a0e45f56e71448a459b6488f4 Author: Georg Baum Date: Thu Jul 10 22:15:34 2014 +0200 Support new languages in tex2lyx I forgot that this was part of the file format update as well. Also fix a mixup of "english" and "uppersorbian". diff

[LyX/master] Missing file format bis from 0c3b88e3

2014-07-10 Thread Georg Baum
commit 1a073ea416674ed37b65a333126a65369a2882be Author: Georg Baum Date: Thu Jul 10 21:59:17 2014 +0200 Missing file format bis from 0c3b88e3 diff --git a/development/FORMAT b/development/FORMAT index 51bc639..4e9368e 100644 --- a/development/FORMAT +++ b/development/FORMAT @@ -11,7

[LyX/2.1.x] Fix bug #9162: Missing \use_indices

2014-07-09 Thread Georg Baum
commit 275c6dabe66c84b683b93eab77e8e40388c8c218 Author: Georg Baum Date: Wed Jul 9 20:58:44 2014 +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

[LyX/2.1.x] Make GraphicsConverter threadsafe

2014-07-07 Thread Georg Baum
commit d610f34212c7253067c8f0a5f088ddb4802d2f6b Author: Georg Baum Date: Mon Jul 7 22:31:11 2014 +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

[LyX/2.1.x] Fix uncodable author warning

2014-07-07 Thread Georg Baum
commit 17275458d9b9e2904b42d95cf6fe4fcbc9960297 Author: Georg Baum Date: Mon Jul 7 22:22:25 2014 +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

[LyX/2.1.x] Fix LaTeXFeatures::useLayout() recursion test

2014-07-07 Thread Georg Baum
commit d9e234b6da75e83aa52e1f2e35386068348096d8 Author: Georg Baum Date: Mon Jul 7 22:16:13 2014 +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

[LyX/2.1.x] Make LaTeX export threadsafe.

2014-07-07 Thread Georg Baum
commit 29f6aebb3efd62d550e3602baa4cd81d17b55062 Author: Georg Baum Date: Mon Jul 7 22:14:28 2014 +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

[LyX/2.1.x] Make BufferList::fileNames() threadsafe

2014-07-07 Thread Georg Baum
commit 2fe650f77f520b31e6e0517eae39d874eeec53a6 Author: Georg Baum Date: Mon Jul 7 22:05:10 2014 +0200 Make BufferList::fileNames() threadsafe Using a static variable here was premature optimization: fileNames() is only called from GuiRef (directly or indirectly), and since

[LyX/2.1.x] Make createBufferTmpDir() threadsafe

2014-07-07 Thread Georg Baum
commit fc3183a762c0f869b71f504c958bd646b7be85af Author: Georg Baum Date: Mon Jul 7 22:03:32 2014 +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/2.1.x] Make DocFileName::mangledFileName() threadsafe

2014-07-07 Thread Georg Baum
commit 211e1661b546ff4a0c38fd385661156d1b0be331 Author: Georg Baum Date: Mon Jul 7 22:01:58 2014 +0200 Make DocFileName::mangledFileName() threadsafe diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index f048930..a063bdc 100644 --- a/src/support/FileName.cpp +++ b/src

[LyX/2.1.x] Make preview filename generation threadsafe

2014-07-07 Thread Georg Baum
commit 7f1fa090e3a2fcde49c8bf06440520ff57fd8331 Author: Georg Baum Date: Mon Jul 7 21:58:24 2014 +0200 Make preview filename generation threadsafe Threadsafety is ensured by the atomic file name generation in TempFile. diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics

[LyX/2.1.x] Backport temp file changes from bf782ee

2014-07-07 Thread Georg Baum
commit ee145f2a7474f329b2a856744de22a01fcb60283 Author: Georg Baum Date: Mon Jul 7 21:56:36 2014 +0200 Backport temp file changes from bf782ee This is a tiny part of the commit which is needed for other thread-safety fixes. diff --git a/src/support/TempFile.cpp b/src/support

[LyX/2.1.x] Make newUnnamedFile() threadsafe

2014-07-07 Thread Georg Baum
commit 9dae9a9d4f7f283ac0f5f34a0b1cd7d264bca41f Author: Georg Baum Date: Mon Jul 7 21:38:39 2014 +0200 Make newUnnamedFile() threadsafe diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index 26bff55..03ecc90 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -47,6

[LyX/2.1.x] Make BufferParams::auto_packages() threadsafe

2014-07-07 Thread Georg Baum
commit ac8fd45b447938f06b126b94a4f95d1cbf3adcd4 Author: Georg Baum Date: Mon Jul 7 21:37:11 2014 +0200 Make BufferParams::auto_packages() threadsafe diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 3b85ff7..890f584 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp

[LyX/2.1.x] Make include and bibitem insets threadsafe

2014-07-07 Thread Georg Baum
commit f4ed3dc6b50f144ac79497008f6904ebcb39cfd4 Author: Georg Baum Date: Mon Jul 7 21:35:53 2014 +0200 Make include and bibitem insets threadsafe Using a mutex to ensure that the generated filenames and ids are still unique. diff --git a/src/insets/InsetBibitem.cpp b/src/insets

[LyX/2.1.x] Make Formats::isZippedFile() threadsafe

2014-07-07 Thread Georg Baum
commit 8fe58b90c2a1bcf2fba36d417c657935c28c5b6f Author: Georg Baum Date: Mon Jul 7 21:34:54 2014 +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 h

[LyX/master] Remove unneeded swap() (thanks Jean-Marc)

2014-07-07 Thread Georg Baum
commit 2c39859575babfc503b1feb3bd64b3c9886f5930 Author: Georg Baum Date: Mon Jul 7 21:16:10 2014 +0200 Remove unneeded swap() (thanks Jean-Marc) std::swap() does exactly the same thing, and avoiding code duplication is always good. diff --git a/src/Length.cpp b/src/Length.cpp

[LyX/2.1.x] Make theWordList() thread safe.

2014-07-06 Thread Georg Baum
commit f5cf3705d50b2cde45369e4707f57ea95995fada Author: Georg Baum Date: Sun Jul 6 18:12:57 2014 +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

[LyX/2.1.x] Reset after 2.1.1 release

2014-07-06 Thread Georg Baum
commit e64954e7d3e07c9e1c3701c9231e9987df55b686 Author: Georg Baum Date: Sun Jul 6 18:02:56 2014 +0200 Reset after 2.1.1 release diff --git a/status.21x b/status.21x index 80c2bcd..a05a9db 100644 --- a/status.21x +++ b/status.21x @@ -1,6 +1,6 @@ -*- text -*- -This file describes what

[LyX/master] Mark some singletons with FIXME THREAD

2014-07-05 Thread Georg Baum
commit b88f6ea3aa1c39849a1d295d106ba7bb491e013b Author: Georg Baum Date: Sat Jul 5 15:20:54 2014 +0200 Mark some singletons with FIXME THREAD diff --git a/src/ConverterCache.cpp b/src/ConverterCache.cpp index 1451f6e..820eb06 100644 --- a/src/ConverterCache.cpp +++ b/src

[LyX/master] Make GraphicsConverter threadsafe

2014-07-05 Thread Georg Baum
commit 5a01424bf0dbb939cbff1c72ecd99359803a4675 Author: Georg Baum Date: Sat Jul 5 15:11:24 2014 +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

[LyX/master] Fix uncodable author warning

2014-07-05 Thread Georg Baum
commit 2a677592a5fbbc369dc4199b1c4b3a0c84fb068a Author: Georg Baum Date: Sat Jul 5 14:49:51 2014 +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

[LyX/master] Fix LaTeXFeatures::useLayout() recursion test

2014-07-05 Thread Georg Baum
commit 5093893b59938ab3cb59612a90580d4b7956cfec Author: Georg Baum Date: Sat Jul 5 14:37:55 2014 +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

[LyX/master] Make LaTeX export threadsafe.

2014-07-05 Thread Georg Baum
commit 5a8b8ba8e11360a716465b9c6c7c0dc48f37f552 Author: Georg Baum Date: Sat Jul 5 14:23:43 2014 +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

[LyX/master] Make newUnnamedFile() threadsafe

2014-07-05 Thread Georg Baum
commit 5c431b9335e7e698f866f516665a2c604e7be396 Author: Georg Baum Date: Sat Jul 5 12:58:22 2014 +0200 Make newUnnamedFile() threadsafe diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index 3f64b90..03ecc90 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -47,6

[LyX/master] Make BufferList::fileNames() threadsafe

2014-07-05 Thread Georg Baum
commit 922d48da27b4371a089fabc5bc1b6c660ad0f598 Author: Georg Baum Date: Sat Jul 5 12:51:40 2014 +0200 Make BufferList::fileNames() threadsafe Using a static variable here was premature optimization: fileNames() is only called from GuiRef (directly or indirectly), and since

[LyX/master] Make BufferParams::auto_packages() threadsafe

2014-07-05 Thread Georg Baum
commit e7c41b5f56e48670ed6415edac1811167a1e177b Author: Georg Baum Date: Sat Jul 5 12:39:59 2014 +0200 Make BufferParams::auto_packages() threadsafe diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 49c55aa..792f148 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp

[LyX/master] Make createBufferTmpDir() threadsafe

2014-07-05 Thread Georg Baum
commit 4bfca60359825cf51b09f0a6b35a91e2858df374 Author: Georg Baum Date: Sat Jul 5 12:31:12 2014 +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/master] Make DocFileName::mangledFileName() threadsafe

2014-07-05 Thread Georg Baum
commit 0de4bc224af34b6f519afb7ab38f190e634b4c7c Author: Georg Baum Date: Sat Jul 5 12:22:08 2014 +0200 Make DocFileName::mangledFileName() threadsafe diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 95880a0..05492f6 100644 --- a/src/support/FileName.cpp +++ b/src

[LyX/master] Make include and bibitem insets threadsafe

2014-07-05 Thread Georg Baum
commit 50929b5b8a294079de7b81617a119a51dcb3142c Author: Georg Baum Date: Sat Jul 5 12:09:49 2014 +0200 Make include and bibitem insets threadsafe Using a mutex to ensure that the generated filenames and ids are still unique. diff --git a/src/insets/InsetBibitem.cpp b/src/insets

[LyX/master] Make Formats::isZippedFile() threadsafe

2014-07-05 Thread Georg Baum
commit 4a2250a5d1dd551f43f75e54942ecbf0d5702080 Author: Georg Baum Date: Sat Jul 5 11:55:35 2014 +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 h

[LyX/master] Fix Tabular::CellData::operator=()

2014-07-05 Thread Georg Baum
commit 0092b523c7d3c1735b6854bcbdb4e65ec782f092 Author: Georg Baum Date: Sat Jul 5 11:44:13 2014 +0200 Fix Tabular::CellData::operator=() Don't create an intermediate copy (found by Jean-Marc). I doubt that this has anything to do with the mystery crash, but it works,

[LyX/master] Make preview filename generation threadsafe

2014-07-05 Thread Georg Baum
commit 79e79ed5480883ac1fd77c11a24e1185690f4354 Author: Georg Baum Date: Sat Jul 5 11:19:34 2014 +0200 Make preview filename generation threadsafe Threadsafety is ensured by the atomic file name generation in TempFile. diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics

[LyX/master] Make theWordList() thread safe.

2014-07-05 Thread Georg Baum
commit cf89851374163be2e8a390dd917d7ef435978979 Author: Georg Baum Date: Fri Jul 4 22:19:43 2014 +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

[LyX/master] Make WordList noncopyable

2014-07-05 Thread Georg Baum
commit 7baaeb3fd2d12928f79e32821b6c01784b99b2a6 Author: Georg Baum Date: Fri Jul 4 21:15:21 2014 +0200 Make WordList noncopyable To avoid unwanted double deletion of d. diff --git a/src/WordList.h b/src/WordList.h index f57f20b..d21f9c8 100644 --- a/src/WordList.h +++ b/src

[LyX/master] Don't guess whether autosave succeeded

2014-07-05 Thread Georg Baum
commit 50467f3f554129b6ff532f4433da27e9b76aff55 Author: Georg Baum Date: Fri Jul 4 21:06:49 2014 +0200 Don't guess whether autosave succeeded writeFile() tells whether it could save the file, so use the return value instead of guessing. diff --git a/src/Buffer.cpp

[LyX/master] Fix bug #9162: Missing \use_indices

2014-07-05 Thread Georg Baum
commit 22dcdd6d8ff39206bcb627ea6ce4de8c6c07417f Author: Georg Baum Date: Fri Jul 4 19:55:44 2014 +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

[LyX/master] Make IconvProcessor::Impl noncopyable

2014-07-01 Thread Georg Baum
commit c9c20dc23b0ca9bc11d6bcc6a324fabb2325080e Author: Georg Baum Date: Tue Jul 1 22:23:06 2014 +0200 Make IconvProcessor::Impl noncopyable The compiler-generated copy-constructor and assigment operators would be wrong for IconvProcessor::Impl, since cd would be copied, and

[LyX/master] Fix memory leak and assignment operator signature

2014-07-01 Thread Georg Baum
commit 0e8fea07057fe603d6967e8be9b76887f7b318ec Author: Georg Baum Date: Tue Jul 1 22:13:54 2014 +0200 Fix memory leak and assignment operator signature The IconvProcessor assignment operator did not delete pimpl_ and used a non-standard signature. If you want to know why the

[LyX/master] Work around MSVC warning

2014-06-26 Thread Georg Baum
commit 2896fe1bd09da000401718d45fbdf34dd1a6e68f Author: Georg Baum Date: Thu Jun 26 21:05:40 2014 +0200 Work around MSVC warning The statement if (pos < from + lyxrc.completion_minlength) triggers a signed vs. unsigned warning. I don't know why this hap

[LyX/master] Fix thinko in loop detection

2014-06-09 Thread Georg Baum
commit f76d6997b710f7fb5180f0cd05415786de5d9417 Author: Georg Baum Date: Mon Jun 9 22:06:58 2014 +0200 Fix thinko in loop detection diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 84f13d6..95880a0 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp

[LyX/master] Fix wrong "externally modified" message

2014-06-09 Thread Georg Baum
commit f792e70d0ac41aba178e8a975028bfca59615194 Author: Georg Baum Date: Mon Jun 9 13:17:40 2014 +0200 Fix wrong "externally modified" message This was a regression of 10364082c835. diff --git a/src/Buffer.cpp b/src/Buffer.cpp index bf12159..10e7a27 100644 --- a/src/

[LyX/master] Remove unsafe method FileName::tempName()

2014-06-09 Thread Georg Baum
commit f09a9fe2e60e4aeaca23b42b2bf30f5d64cfd9b1 Author: Georg Baum Date: Mon Jun 9 13:05:50 2014 +0200 Remove unsafe method FileName::tempName() FileName::tempName() created a new temp file name by using qt to create a temporary file with a unique name, and then deleting that

[LyX/master] Don't double delete by making TempFile noncopyable

2014-06-09 Thread Georg Baum
commit ae15b5973487852325baf0859b40632e0f12b9c7 Author: Georg Baum Date: Mon Jun 9 12:59:47 2014 +0200 Don't double delete by making TempFile noncopyable The compiler generated copy constructor and assignment operator are wrong. This could easily be fixed by implementing

[LyX/master] Fix typo

2014-06-09 Thread Georg Baum
commit 47721216f0d0959e4337e399fdccd50f9eba8243 Author: Georg Baum Date: Sat Jun 7 21:22:26 2014 +0200 Fix typo diff --git a/src/support/TempFile.h b/src/support/TempFile.h index 2adbb9f..c9342f9 100644 --- a/src/support/TempFile.h +++ b/src/support/TempFile.h @@ -33,7 +33,7 @@ public

[LyX/master] Improve file saving strategy

2014-06-09 Thread Georg Baum
commit bf782ee02ac35d575247bf63eabbd38bd31c53af Author: Georg Baum Date: Mon Jun 9 11:08:24 2014 +0200 Improve file saving strategy - The TempFile class guarantees to generate a file name, we are not limited to 100 tries of a predictable scheme anymore, which could break if

[LyX/master] Document class file name rule

2014-06-07 Thread Georg Baum
commit 5353b406e6e3f3db49f1c0d43652b7fcb0169ab0 Author: Georg Baum Date: Sat Jun 7 11:32:15 2014 +0200 Document class file name rule This rule was followed in practice, but not documented so far. diff --git a/development/coding/Rules b/development/coding/Rules index 558449c

[LyX/master] Explain why the binary detection works

2014-06-07 Thread Georg Baum
commit 4bea5b9d18af249661e23c462fea3f59042bac03 Author: Georg Baum Date: Sat Jun 7 17:48:23 2014 +0200 Explain why the binary detection works Extracted from Enricos comment at bug 9146. diff --git a/src/Format.cpp b/src/Format.cpp index ff7fb34..44e3f63 100644 --- a/src

[LyX/master] Fix bug #7954 (now really)

2014-06-07 Thread Georg Baum
commit c1ac09e11fc127b61ecc91ac623791c571f48d34 Author: Georg Baum Date: Sat Jun 7 10:50:11 2014 +0200 Fix bug #7954 (now really) Thanks to maciejr we know now what the remaining problem was with bug 7954: My unicode symbol fallback works fine, the problem was that a font

[LyX/master] Detect binary EPS files correctly (bug #9146)

2014-06-04 Thread Georg Baum
commit 8be7da42e9deb50c2692341a145a6ccdffbb0ee2 Author: Georg Baum Date: Wed Jun 4 21:52:45 2014 +0200 Detect binary EPS files correctly (bug #9146) The Adobe EPS file format specification (TN-5002, currently available at http://partners.adobe.com/public/developer/en/ps/5002

[LyX/master] Add missing bits of layout file format update

2014-05-29 Thread Georg Baum
commit 953a4d13d928517be121cca2a8f2c4bd93ca2137 Author: Georg Baum Date: Thu May 29 21:25:08 2014 +0200 Add missing bits of layout file format update This is needed so that the new format number is actually used. Since the conversion is a noop I did not update the layout files

[LyX/master] Update layouts with separators to format 50

2014-05-29 Thread Georg Baum
commit 4e078230a0335f196caf40943ef1c03da13b0680 Author: Georg Baum Date: Thu May 29 21:22:15 2014 +0200 Update layouts with separators to format 50 diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index b02f162..14b0499 100644 --- a/lib/layouts/beamer.layout +++ b/lib

[LyX/master] Include lyx2lyx test in tarball

2014-05-29 Thread Georg Baum
commit 1187b8834e2df2cd9867b3d47044f321692828e5 Author: Georg Baum Date: Thu May 29 15:13:59 2014 +0200 Include lyx2lyx test in tarball diff --git a/lib/lyx2lyx/Makefile.am b/lib/lyx2lyx/Makefile.am index b581136..4bc7641 100644 --- a/lib/lyx2lyx/Makefile.am +++ b/lib/lyx2lyx/Makefile.am

[LyX/master] Make layout test compile

2014-05-29 Thread Georg Baum
commit 53f8d6d6d373460bdcfebd20d6f826e3915c84ff Author: Georg Baum Date: Thu May 29 15:07:07 2014 +0200 Make layout test compile diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index 5a99081..ce4261c 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests

[LyX/master] Execute lyx2lyx unit test when running tests

2014-05-29 Thread Georg Baum
commit 11be833a2ef24e5c80f942aa6e22769f3fe9bfb1 Author: Georg Baum Date: Thu May 29 14:57:05 2014 +0200 Execute lyx2lyx unit test when running tests Actually lyx2lyx has a tiny unit test. Add it to the autotools test machinery and fix it: Since nobody knew about it the test

[LyX/master] Fix the fix

2014-05-29 Thread Georg Baum
commit 55af9cb006563032e35fcc8bc5c8c1284c0344da Author: Georg Baum Date: Thu May 29 14:44:38 2014 +0200 Fix the fix MAC-style (pre-OS X) line ends were not recognized anymore diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 93006c3..5ee8d5f 100644 --- a/lib/lyx2lyx

[LyX/master] Do not corrupt documents without newline at EOF

2014-05-29 Thread Georg Baum
commit c75c6e446a8bc0dbaabaf156c0abfd622c050129 Author: Georg Baum Date: Thu May 29 13:15:07 2014 +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

[LyX/master] Native support for \notag

2014-05-27 Thread Georg Baum
commit 4cea2efe21c528917de779d9df3093613ad3dc82 Author: Georg Baum Date: Tue May 27 22:17:35 2014 +0200 Native support for \notag This is mainly needed to reduce the amount of ERT if you convert AMS example documents with tex2lyx. No GUI support is needed, since \notag is

[LyX/master] Add missing member initializations

2014-05-27 Thread Georg Baum
commit ff8450f83980db8521c65a69b7063b0c8a804c07 Author: Georg Baum Date: Sat May 24 16:02:31 2014 +0200 Add missing member initializations diff --git a/src/Encoding.h b/src/Encoding.h index 5f788f9..ed9c27e 100644 --- a/src/Encoding.h +++ b/src/Encoding.h @@ -57,7 +57,7 @@ enum

[LyX/master] Native support for \smash[t] and \smash[b]

2014-05-27 Thread Georg Baum
commit 5dc9568f8d7e1eea485658a9a6d2e0f12114ddaa Author: Georg Baum Date: Tue May 27 22:10:02 2014 +0200 Native support for \smash[t] and \smash[b] This is a follow-up of bug #8967. The implementation is self-explaining, the only part which needs a comment is lyx2lyx: Since a

[LyX/2.1.x] Fix another crash similar to #9030

2014-05-22 Thread Georg Baum
commit 5df89e50069b364fa2f4d304c682b48209ae14e3 Author: Georg Baum Date: Thu May 22 22:04:09 2014 +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. diff --git a/src/frontends

[LyX/master] Fix another crash similar to #9030

2014-05-22 Thread Georg Baum
commit 85db1005b621aa7895c230e07bcf92e8ca041e7b Author: Georg Baum Date: Thu May 22 22:00:58 2014 +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. diff --git a/src/frontends

[LyX/master] Initialize all members

2014-05-19 Thread Georg Baum
commit f5b829bc8abf2e777d8dfc93400ae603d26d3a22 Author: Georg Baum Date: Mon May 19 22:41:51 2014 +0200 Initialize all members diff --git a/src/Lexer.cpp b/src/Lexer.cpp index df2ce69..c4b738f 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -569,7 +569,7 @@ void Lexer::Pimpl::pushToken

[LyX/master] Fix bug 9030 except for windows

2014-05-19 Thread Georg Baum
commit afc34c7a60faaceb5fba9463aba44e3c4062f6cb Author: Georg Baum Date: Mon May 19 22:37:14 2014 +0200 Fix bug 9030 except for windows The format entries should be sorted according to the culture selected for the UI. This was not the case previously, resulting in unexpected

[LyX/master] Remove unneeded slash

2014-05-19 Thread Georg Baum
commit 2acd00fc17eaedbc768720da23b2f1ce13f7e634 Author: Georg Baum Date: Mon May 19 22:09:12 2014 +0200 Remove unneeded slash addPath() always adds a slash at the end, os got a double one before. Qt and the OS are clever enough to understand that, but a single slash looks

[LyX/master] Move code where it belongs

2014-05-19 Thread Georg Baum
commit 923ab0734d7374c505f314fef73909c405771ff8 Author: Georg Baum Date: Mon May 19 22:07:04 2014 +0200 Move code where it belongs It is declared in Dimension.h, so the implementation should be in Dimension.cpp. diff --git a/src/CoordCache.cpp b/src/CoordCache.cpp index

[LyX/2.1.x] Ugly fix for bug #9102

2014-05-19 Thread Georg Baum
commit c9fdf376789c787c1a1cbce19b19d1b86b8a653a Author: Georg Baum Date: Mon May 19 21:50:34 2014 +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

[LyX/master] Ugly fix for bug #9102

2014-05-19 Thread Georg Baum
commit 35ec98bcb2f478608926143617260745e4c0dc39 Author: Georg Baum Date: Mon May 19 21:40:11 2014 +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

[LyX/master] Fix lyx2lyx warning for tex2lyx files

2014-05-12 Thread Georg Baum
commit ced24dea55bd2c44a04d4fbfd7355e3318d7ed08 Author: Georg Baum Date: Mon May 12 22:06:24 2014 +0200 Fix lyx2lyx warning for tex2lyx files I would not have thought that reLyX was considered, but not tex2lyx! diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 6b14c6c

[LyX/master] Update version

2014-05-12 Thread Georg Baum
commit 9e5ecdcdce348adcc7d2d141be93b62fe4a6f61a Author: Georg Baum Date: Mon May 12 21:53:27 2014 +0200 Update version diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx index 5b32e6e..1acc703 100644 --- a/lib/doc/Development.lyx +++ b/lib/doc/Development.lyx @@ -112,7 +112,7

[LyX/master] Update tex2lyx test references

2014-05-12 Thread Georg Baum
commit 3c1b79dd5bd9d6d79a83254075a65a61d46317e2 Author: Georg Baum Date: Mon May 12 21:23:47 2014 +0200 Update tex2lyx test references This is needed after c668ebf61. tex2lyx itself was already updated, and I verified that the new output is correct. diff --git a/src/tex2lyx

[LyX/2.1.x] Forgot status

2014-05-01 Thread Georg Baum
commit 90a16b3ec11bdd2a22d157e81bce1079b52592e4 Author: Georg Baum Date: Thu May 1 13:53:17 2014 +0200 Forgot status diff --git a/status.21x b/status.21x index 91c1662..50bff94 100644 --- a/status.21x +++ b/status.21x @@ -76,6 +76,8 @@ What's new - Fix use math package set

[LyX/2.1.x] Fix table rotate conversion to 2.0 format

2014-05-01 Thread Georg Baum
commit b0664e0c98b92b23442e9e344b2c6ad124c88ac9 Author: Georg Baum Date: Thu May 1 13:48:44 2014 +0200 Fix table rotate conversion to 2.0 format The old code did create invalid documents, since the space between the rotate flag dn the previous flag was removed. diff --git a

[LyX/master] Whitespace fixes

2014-04-29 Thread Georg Baum
commit 8ed7f52584b6724429a08a6c31d33c23a246a076 Author: Georg Baum Date: Tue Apr 29 22:05:27 2014 +0200 Whitespace fixes diff --git a/src/Text.h b/src/Text.h index 189a422..e6759ef 100644 --- a/src/Text.h +++ b/src/Text.h @@ -293,7 +293,7 @@ public: void write(std::ostream &

[LyX/master] Fix C++11 test

2014-04-29 Thread Georg Baum
commit 351363c599db664d612fbe1b426403f91758de05 Author: Georg Baum Date: Tue Apr 29 21:00:02 2014 +0200 Fix C++11 test Thanks Vincent for noticing. The old test was slightly off, the C++98 standard guarantees that __cplusplus is defined as 199711L, not 19971L. diff --git a

[LyX/master] Fix table rotate conversion to 2.0 format

2014-04-27 Thread Georg Baum
commit d6fecb4aa47899ea3fe02d1699e0ffc81f364910 Author: Georg Baum Date: Sun Apr 27 20:58:53 2014 +0200 Fix table rotate conversion to 2.0 format The old code did create invalid documents, since the space between the rotate flag dn the previous flag was removed. diff --git a

[LyX/2.1.x] Fix lyx2lyx math package defaults (bug #9069)

2014-04-27 Thread Georg Baum
commit b73a59932ea32977797c558661a10fe722727dc6 Author: Georg Baum Date: Sun Apr 27 18:09:29 2014 +0200 Fix lyx2lyx math package defaults (bug #9069) lyx2lyx sets all new math packages to off when converting from old formats. This is correct if any command which would cause an

[LyX/2.1.x] Fix math package conversion to 2.0 format

2014-04-27 Thread Georg Baum
commit d47a556b46c2dde1a245e9ffa4918111e63fa70e Author: Georg Baum Date: Sun Apr 27 18:08:24 2014 +0200 Fix math package conversion to 2.0 format When doing the lyx2lyx round trip of the 2.0.8 user guide from format 413 -> 474 -> 413 you get an invalid document, becau

[LyX/2.1.x] Fix data loss in user guide conversion to 2.0.x

2014-04-27 Thread Georg Baum
commit 28bde98d7624d0450f7f38169d73464d8bd59d66 Author: Georg Baum Date: Sun Apr 27 18:06:34 2014 +0200 Fix data loss in user guide conversion to 2.0.x When doing the lyx2lyx round trip of the 2.0.8 user guide from format 413 -> 474 -> 413 you do not get a zero diff. Th

[LyX/2.1.x] Fix warning in lyx2lyx 2.0<->2.1 round trip

2014-04-27 Thread Georg Baum
commit e754d00faa71a8950de8582fb0f38f6fb270ac38 Author: Georg Baum Date: Sun Apr 27 18:04:40 2014 +0200 Fix warning in lyx2lyx 2.0<->2.1 round trip revert_justification() issues a warning if the \justification parameter does not exist, and LyX itself always wri

[LyX/master] Fix lyx2lyx math package defaults (bug #9069)

2014-04-25 Thread Georg Baum
commit 52d258861317dca2b6dde349bf44abe3e281c772 Author: Georg Baum Date: Fri Apr 25 22:39:22 2014 +0200 Fix lyx2lyx math package defaults (bug #9069) lyx2lyx sets all new math packages to off when converting from old formats. This is correct if any command which would cause an

[LyX/master] Fix math package conversion to 2.0 format

2014-04-25 Thread Georg Baum
commit 5710f68c340dc459e538e62972b7322b6a9027b8 Author: Georg Baum Date: Fri Apr 25 22:12:04 2014 +0200 Fix math package conversion to 2.0 format When doing the lyx2lyx round trip of the 2.0.8 user guide from format 413 -> 474 -> 413 you get an invalid document, becau

[LyX/master] Fix data loss in user guide conversion to 2.0.x

2014-04-25 Thread Georg Baum
commit 2fe07e1fe1e2253dcf8a3f505cb832f2841ea069 Author: Georg Baum Date: Fri Apr 25 21:35:51 2014 +0200 Fix data loss in user guide conversion to 2.0.x When doing the lyx2lyx round trip of the 2.0.8 user guide from format 413 -> 474 -> 413 you do not get a zero diff. Th

[LyX/master] Fix warning in lyx2lyx 2.0<->2.1 round trip

2014-04-24 Thread Georg Baum
commit cacd2a041d2c78904d43f0918515695a972781b9 Author: Georg Baum Date: Thu Apr 24 21:52:32 2014 +0200 Fix warning in lyx2lyx 2.0<->2.1 round trip revert_justification() issues a warning if the \justification parameter does not exist, and LyX itself always wri

[LyX/master] Make iparserdocstream more like std::istream

2014-04-22 Thread Georg Baum
commit 0c0e16c61cb01555277c8605e970ace1f4fdce1b Author: Georg Baum Date: Tue Apr 22 22:03:31 2014 +0200 Make iparserdocstream more like std::istream In C++98 std::istream does not use an operator bool(), but an operator void*() instead, which prevents some unwanted conversions

[LyX/master] Improve translation of "Graph" for achemso.layout

2014-04-10 Thread Georg Baum
commit fe080790f11f8b51ba0e2c45f3daeb329fd14ef7 Author: Georg Baum Date: Thu Apr 10 21:51:05 2014 +0200 Improve translation of "Graph" for achemso.layout As discussed. achemso.layout contains both "Chart" and "Graph", therefore it does not ma

[LyX/master] Fix display of predefined macros (bug #9059)

2014-03-28 Thread Georg Baum
commit e85e9424b340baaa799ff769b43386cfdad75d6f Author: Georg Baum Date: Fri Mar 28 23:16:36 2014 +0100 Fix display of predefined macros (bug #9059) This was a regression of e86cdc40: A newly introduced member variable was not initialized in the constructor, which made it

[LyX/master] Update layouttranslation review status

2014-03-13 Thread Georg Baum
commit 5833f2609ba53341b869a261e449dc0b4f02b178 Author: Georg Baum Date: Thu Mar 13 21:29:27 2014 +0100 Update layouttranslation review status diff --git a/lib/layouttranslations.review b/lib/layouttranslations.review index 96078f6..0f49cd0 100644 --- a/lib/layouttranslations.review +++ b

[LyX/master] Fix wrong comment (thanks Enrico)

2014-03-13 Thread Georg Baum
commit f7e06dbf160aa9d26d9e23deefff835399553642 Author: Georg Baum Date: Thu Mar 13 21:02:41 2014 +0100 Fix wrong comment (thanks Enrico) diff --git a/src/support/environment.cpp b/src/support/environment.cpp index ac5729b..813d418 100644 --- a/src/support/environment.cpp +++ b/src

[LyX/master] Add comments about putenv() usage

2014-03-10 Thread Georg Baum
commit 362630fba1ce025569d13909813a73b33fdb6558 Author: Georg Baum Date: Mon Mar 10 20:59:03 2014 +0100 Add comments about putenv() usage Again thanks to Enrico. diff --git a/src/support/environment.cpp b/src/support/environment.cpp index a353922..ac5729b 100644 --- a/src/support

[LyX/master] Add comment (thanks Enrico)

2014-03-10 Thread Georg Baum
commit e3714947b07f6081ced0a3eab1dc24f5c3bfa81e Author: Georg Baum Date: Mon Mar 10 20:52:51 2014 +0100 Add comment (thanks Enrico) diff --git a/src/LyX.cpp b/src/LyX.cpp index b576ac0..41c69f7 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -844,6 +844,7 @@ bool LyX::init

[LyX/master] Arrgh, fix warning

2014-03-09 Thread Georg Baum
commit c9a49d2145c60c71768d7df1a615f7e4e043e703 Author: Georg Baum Date: Sun Mar 9 18:48:50 2014 +0100 Arrgh, fix warning diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 24e35c9..d198998 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp

[LyX/master] MSVC compile fix

2014-03-09 Thread Georg Baum
commit a6f4aa2d181ee24fc913e573d971b5556f78fd71 Author: Georg Baum Date: Sun Mar 9 18:18:17 2014 +0100 MSVC compile fix diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 274acd9..24e35c9 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp

<    1   2   3   4   5   6   7   8   >