15416 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
f81df3a752 branch: Prevent the ghost index files when the converter cache is either not used or not initialized.
see r33868.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33904 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 08:10:42 +00:00
Enrico Forestieri
999ef03d1f Fix bug #6618: RTL (sub)*section after LTR text doesn't compile.
When deciding whether to switch encoding or not, the "fragileness" of
the enclosing environment (rather than that of the actual one) should
be taken into account, as we already account for the current "fragility"
by outputting the encoding switch just before switching environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33898 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-28 22:12:09 +00:00
Richard Heck
30484ecced Backport fix for #6454. The real cause may be elsewhere, but this does
fix the crash and is a worthwhile sanity check in any event.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33875 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 16:59:08 +00:00
Richard Heck
88f1ca654f Backport fix for #6522.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33874 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-26 16:54:24 +00:00
Vincent van Ravesteijn
6592a587fc branch: Fix bug #6377: Tex2lyx error with multiple languages.
We have to set the language again when a new paragraph is started. Otherwise the n'th paragraph in a certain language is set to the document language.

see r33727.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 18:18:04 +00:00
Pavel Sanda
ab484f3453 Backport fix for bug #6593
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33805 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 17:02:11 +00:00
Pavel Sanda
3f3b24316b Fix gcc warning (copy the state from trunk)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33804 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 16:57:03 +00:00
Enrico Forestieri
ab08ae33ca Fix bug #6581: Empty base of a script inset should not be shown as an empty brace inset on screen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 17:29:24 +00:00
Vincent van Ravesteijn
c8e783fcaf branch: Fix bug #6552: Crash when inserting TeX-code in math mode and scrolling
Avoid an assertion when accessing the CoordCache while the Inset is in a paragraph which is not visible on screen.

see r33582.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 23:02:48 +00:00
Vincent van Ravesteijn
4060153d69 branch: Fix bug #6462: Out-of-bounds index in GuiErrorList::goTo when new buffer is active.
Cache the buffer and errorList in the GuiErrorList? dialog. Now, we can check whether the active buffer is also the buffer for which the errors are shown. We switch back to the correct buffer, when one clicks on an item or clicks "View complete log".

see r33726.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 22:28:48 +00:00
Enrico Forestieri
0a7616e65c Fix command line parsing and allow unicode arguments for tex2lyx on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33755 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 22:07:38 +00:00
Vincent van Ravesteijn
01f95f41e6 branch: Fix bug #5735: Modifying a keyboard shortcut function entry clashes with its own shortcut key combination definition.
- Trim the saved lfun because there is a space added in the textfield,
- check whether the action has changed before signaling that the shortcut already exists.

see r33713.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33754 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 21:43:26 +00:00
Vincent van Ravesteijn
f868ad6807 branch: Fix bug #6438: Crash with buffer-switch with no documents open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33753 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 21:33:51 +00:00
Vincent van Ravesteijn
32a3b921d6 branch: Fix bug #6474: Tex2lyx skips all spaces in the preamble.
Partially reverting r30113 (trunk).

see r33711.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33752 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 21:25:27 +00:00
Vincent van Ravesteijn
4ccee3ae39 branch: Fix bug #6525: Autosave error when renaming a new file.
Don't try to move the autosave file if it does not exist.

see r33454 and r33455.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33712 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 17:04:28 +00:00
Uwe Stöhr
5322561dcd backport r33615: fix bug that LyX allowed to specify the vertical alignment of table columns without a fixed width
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33685 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 00:34:58 +00:00
Jürgen Spitzmüller
8491020572 Fix bug 6503: Including self as child document crashes branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33657 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-07 09:38:58 +00:00
Richard Heck
65eaba6826 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33629 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 20:40:45 +00:00
Vincent van Ravesteijn
0f06b1c3e8 branch: Fix bug #6491: Empty .emergency file causes crash.
If the load fails, we should not try to save an emergency file as the file was not yet fully loaded and weird things may happen.

see r33294.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33612 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-02 17:50:49 +00:00
Richard Heck
aa91ad06df Backport r33586 for branch. And status!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33611 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-02 15:19:12 +00:00
Richard Heck
21947cd7e5 Fix warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33610 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-02 15:13:00 +00:00
Richard Heck
9791d934b0 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33609 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-02 15:01:47 +00:00
Jürgen Spitzmüller
afc51e0ffa * handle encoding in PDF options gracefully.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33606 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-02 08:14:05 +00:00
Enrico Forestieri
f024c86911 Fix bug #5238: LyX 1.6 fails with non-ascii chars in path (on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33577 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 13:28:56 +00:00
Jean-Marc Lasgouttes
db344e54e0 Fix bug #6217: Replacing a word in spellcheck does not update toolbar
This commit uses the self-insert LFUN to make the replacement, so that
the dispatch machinery can do its magic. Note the comment: to make it work, one
has to change temporarily the value of auto_region_delete.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33567 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 15:43:18 +00:00
Enrico Forestieri
cff9254f1d Avoid unnecessary exceptions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33517 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 16:33:20 +00:00
Jürgen Spitzmüller
69c333db98 * Buffer.cpp:
- Issue a warning if a path contains uncodable characters (bug 6301).

Trunk follows.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33512 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 14:30:56 +00:00
Enrico Forestieri
18b02464b4 Operator new[] should always be matched by operator delete[],
even when allocating POD types.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33494 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 08:05:27 +00:00
Enrico Forestieri
d616b5215b Fix bug #3325: Labels with special characters in equations do not work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33471 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-13 19:00:17 +00:00
Jürgen Spitzmüller
ef1f3ec29e Fix encoding issues in bibitems (bug #6534)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33458 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-13 08:40:10 +00:00
Jürgen Spitzmüller
678ace1244 * GuiErrorList.cpp: following André's advice.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33421 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-11 06:58:52 +00:00
Jürgen Spitzmüller
788eb2926f * GuiErrorList.cpp:
- use GUIfied strings (bug 6397).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33408 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-10 11:42:52 +00:00
Enrico Forestieri
fd43c35d30 Fix bug #6510: URL in the footnote will cause the `CJK' environment to terminate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33397 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 18:04:24 +00:00
Jürgen Spitzmüller
625e24128e * Enchant.cpp: don't crash if dictionary is not found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33384 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 14:17:34 +00:00
Enrico Forestieri
e440c54a3e Fix bug #6469: Times Roman and \textgreek produce error with pdflatex on a PC
The problem here is that the metafont sources and tfm files are missing
in normal installations, because the Times Roman Greek fonts are not free
and should be purchased. When the grtimes package is not installed, the
fonts are substitued with cmr glyphs. However, if grtimes is installed
and and the actual fonts are missing, an error is generated. So, we simply
check whether the greek fonts are installed and, if they are not, we
perform the font substitution by ourselves. In this way the error is
avoided whether grtimes is installed or not.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33372 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-08 23:21:16 +00:00
Jürgen Spitzmüller
879272068b Patch by John McCabe-Dansted to fix bug #6502:
Wrong line count with parent math macros:

* TeXRow.{cpp,h}:
	- new helper function to insert multiple newline at once.

* mathed/MacroTable.{cpp,h}:
* mathed/MacroTemplate.{cpp,h}:
	- make write() an int, returning number of newlines

* Buffer.cpp (writeLaTeXSource):
	- update texrow's newline on parent macro output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33368 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-08 17:51:15 +00:00
Enrico Forestieri
667031f492 Fix shortcut target for the Content combo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33346 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-06 19:18:32 +00:00
Vincent van Ravesteijn
d37683420c branch: Fix bug #6489: Assertion triggered when deleting contents of math ERT. (probably a stdlib assertion).
Do not access name_[0] if name_ has size 0.

see r33290 and r33292.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33337 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-06 01:43:50 +00:00
Enrico Forestieri
64ddb9f47d Fix bug #2872: reference in math to label with "underscore"...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33332 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-05 13:33:20 +00:00
Edwin Leuven
93b1b4b35e backport r33088
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33314 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 20:20:35 +00:00
Enrico Forestieri
c47af690de According to André, QLatin1String is cheaper.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33307 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 01:14:00 +00:00
Vincent van Ravesteijn
b9250f26a3 Fix bug #6448: Crash with invalid anchor.
If we check whether a cursor is valid, we should also check the anchor_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33281 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 18:00:05 +00:00
Vincent van Ravesteijn
aa7903de80 branch: Fix bug #6431: Crash when closing a workarea with a pending completion popup.
The GuiCompleter? has to have a parent, otherwise it is not destroyed when a GuiWorkArea? is destroyed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33280 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 17:55:10 +00:00
Jürgen Spitzmüller
85e8e0b8cf * InsetTabular.{cpp, h}:
- implement addToToc (bug 6372).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33261 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 13:04:02 +00:00
Jürgen Spitzmüller
5d80852425 oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33246 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:36:59 +00:00
Jürgen Spitzmüller
8af73a3f93 * CutAndPaste.cpp:
- more improvements as suggested by Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:34:31 +00:00
Jürgen Spitzmüller
3d15a23796 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33244 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:20:50 +00:00
Jürgen Spitzmüller
207ca6ccbf * InsetMathHull.h: constness, as suggested by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:15:04 +00:00
Jürgen Spitzmüller
948cb9e3ff * CutAndPaste.cpp: reduce indendation levels, as suggested by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:08:37 +00:00
Jürgen Spitzmüller
3e330398b1 When pasting a math inset with a label, check for duplicates (as we do outside math)
(bug 6218)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33239 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 07:29:57 +00:00