Commit Graph

29476 Commits

Author SHA1 Message Date
Juergen Spitzmueller
2c88e6ab2f Do not allow the manual insertion of a directory (without filename) into the import dialog and thus prevent an assertion.
Fixes: #7437(cherry picked from commit afd897029917a083fbeb84cccd4e6cb0a21db7ed)
2014-03-23 19:00:15 -04:00
Benjamin Piwowarski
9fef2346d6 Updated status for commit 0fc6cfcdcb 2014-03-23 12:05:46 +01:00
Juergen Spitzmueller
6979ec6818 style 2014-03-23 11:23:06 +01:00
Juergen Spitzmueller
0cad43a114 Fix assertion when ChkTeX hit math.
The problem here was that we used texted-only methods (via paragraph()), which triggered the assertion as soon as we were inside math.

Fixes: #8798
2014-03-23 11:21:06 +01:00
Juergen Spitzmueller
aceb9d9f29 Do not crash when entering math in ct mode with merge dialog open.
Fixes: #7685.
2014-03-23 10:45:58 +01:00
Juergen Spitzmueller
1c35155810 Fix selection drawing after mouse-double/triple in mathed
Fixes: #8829
2014-03-23 10:35:36 +01:00
Juergen Spitzmueller
e6af49a9f5 InsetListings: Rewrite C-ism in C++ and fix terminator bug.
The rewriting is completely done by JMarc. The terminator bug fix has been added to that by me.

Fixes: #8985
Conflicts:
	src/insets/InsetListings.cpp
2014-03-23 10:24:53 +01:00
Scott Kostyshak
c56fc4c5f4 Focus on buffer after section select in Outliner 2014-03-23 10:03:26 +01:00
Juergen Spitzmueller
a62cfc6024 Fix section-select when issued from outliner
Fixes: #8936
2014-03-23 10:02:17 +01:00
Richard Heck
e60af4e98a Patch from Enrico fixing a problem with the lyxpak.py script when
"Add Bibliography to TOC" is used. Fixes #9044.
(cherry picked from commit 1fe2910774b5f1d673e3f85349c8d360023214db)
2014-03-22 20:27:05 -04:00
Benjamin Piwowarski
bfb6d68447 Avoids const_cast in configure_command by using mutable 2014-03-22 10:03:41 +01:00
Benjamin Piwowarski
0fc6cfcdcb Fix problem with python and change of PATH
- waits that lyxrc has been read before finding python
- when the PATH changes, resets the value
2014-03-22 09:36:19 +01:00
Jean-Marc Lasgouttes
e72b3f8e3e Fix bug #8837: LyX hangs on selection
The code that checks whether the cursor was at the end of a row in
Cursor::upDowninText was not able to set boundary correctly. This
causes a hang in because the cursor got stuck on a line and there is an
infinite loop BufferView::dispatch when trying to go down.

The fix is to avoid using the watered-down TextMetrics::x2pos wrapper
around getColumnNearX and use the real thing instead.

Eventually, the last user of x2pos (InsetTabular) should be fixed and
the method should go away.
2014-03-19 17:15:00 +01:00
Uwe Stöhr
f5940d5e18 sv.po: fix a translation bug #7830 now completely 2014-03-13 01:20:38 +01:00
Uwe Stöhr
d9700daf8d sv.po: fix a translation bug #7830 2014-03-13 01:10:09 +01:00
Uwe Stöhr
e1f5737d34 zh_CN.po: fix a typo reported in bug #9033 2014-03-10 22:43:26 +01:00
Scott Kostyshak
b3cf238f4b status: fix a ticket number 2014-03-04 12:54:23 -05:00
Jean-Marc Lasgouttes
191d44a557 Fix bug #8884: Crash when "navigate to next change"
The two fixes here a obviously right, although it is not clear why they are sufficient to fix the bug. Anyway I cannot reproduce any crash with it.

 * the first part just conditions a whole if/else to change_next_pos.changed(). Originally, only the if branch was concerned.

 * the second part is to avoid calling CursorSlice::backwardPos() when position is 0. Doing this leads to an assertion.
2014-03-04 10:25:32 +01:00
Jean-Marc Lasgouttes
5c0cf4cc51 Fix bug #8998: changed document setting is recoded twice as undo
The general trick to avoid this kind of problems is to use undo groups.
2014-03-04 10:06:37 +01:00
Uwe Stöhr
cc071bb34d zh_TW.po: huge translation update by Mingyi Wu 2014-02-27 00:59:14 +01:00
Juergen Spitzmueller
3f317d1f2d Fix compilation after 4277e8b733 2014-02-26 17:20:30 +01:00
Richard Heck
4277e8b733 Table cells are insets, but not from the point of view of DocIterators
and Cursors. So just calling InsetText::addToToc for the cells causes
problems, because InsetText::addToToc then adds the cell inset itself
as part of the DocIterator. This then leads to assertions, such as bug

The solution is to refactor InsetText::addToToc so that we can call the
iterating part without adding the inset.
(cherry picked from commit 6a85db2307)
2014-02-26 10:37:05 -05:00
Georg Baum
c7596ec4b2 Fix bug #8784 (mathml export for scripts)
For displaystyle scripts we need to use munder, mover or munderover.
2014-02-22 19:18:16 +01:00
Enrico Forestieri
64be8c6553 Fix bug #8889 by always issuing \protect in fragile environments.
(cherry picked from commit 3c1969574f)
2014-02-22 10:35:07 -05:00
Georg Baum
e09faf7ce6 Fix bug #8891 (wrong depth of copied text)
This was an obvious thinko: When pasting a paragraph list the depth of the
pasted paragraphs need to be adjusted, so that no paragraph has a negative
depth afterwards. However, the maximum allowed depth was only adjusted after
the second and following pasted paragraphs. Since the computed value was only
used for the subsequent paragrph this meant that the second paragraph did
still use the same maximum allowed depth as the first one, which came from the
paragraph the text as pasted into. This was wrong e.g. in case the outside
paragraph was a standard paragraph (max_depth = 0), and the first pasted
paragraph was an enumeration (max_depth = 1). Therefore, max_depth needs to
be adjusted also after the first pasted paragaph. Since the adjustment is
done aftre max_depth was used for the current paragraph the condition
mentioned in the comment is still met.
(cherry picked from commit 270201ed67)
2014-02-22 10:21:34 -05:00
Uwe Stöhr
53771a2716 status.20x: [aba0b41f/lyxgit] fixed 2 bugs 2014-02-19 21:29:45 +01:00
Jean-Marc Lasgouttes
a5cab01a9f Fix bug 6055: change-next does not work in tables
The problem was just the faulty use of CursorSlice::at_begin/end(), which does not look for end of cell, but end of inset.
(cherry picked from commit 68202fdf44)
2014-02-19 09:36:27 -05:00
Juergen Spitzmueller
aba0b41fdc Handle is_child runparam in preview (bug #8445)
(cherry picked from commit 1ace930f7d)
2014-02-19 09:25:41 -05:00
Richard Heck
9e9e02d285 Fix bug #8540 by not resetting the GUI if the request came from
the minibuffer. As the comments explain, this leaves a different
bug, but (a) it isn't a crash and (b) it probably won't affect
many users, if *any* users.
(cherry picked from commit 7220f1459e)
2014-02-18 11:03:46 -05:00
Scott Kostyshak
0b47d745d9 Add Dustin J. Mitchell to contributors 2014-02-17 09:46:59 -05:00
Scott Kostyshak
b36b59d06a csv2lyx: use universal newlines when reading CSVs
Patch from Dustin J. Mitchell.
2014-02-16 00:11:34 -05:00
Scott Kostyshak
2ec8880e47 Shortcut box now stays open if bad input (#8703)
This allows the user to correct the bad input without
having to enter the other fields again in a new dialog.

Patch from Martin Hoffmann.
(cherry picked from commit 27131e655a)

Conflicts:
	lib/generate_contributions.py
2014-02-13 18:07:13 -05:00
Richard Heck
6d63895887 Fix bug #8944 by introducing a maximum size for keys we process.
Backported from b7a1eb68e1.
2014-02-13 18:01:41 -05:00
Juergen Spitzmueller
30c2e1d687 Support (black) card suites in text mode (#8971) 2014-02-13 17:27:24 +01:00
Juergen Spitzmueller
e9a9c0fd1b Correct language code of traditional Chinese (#8970) 2014-02-13 14:20:52 +01:00
Juergen Spitzmueller
6a3ef6a134 Do not crash with empty (invalid) math environments (part of #8359) 2014-02-10 19:25:57 +01:00
Juergen Spitzmueller
adc78fac32 Fix LFUN_MATH_AMS_MATRIX: it was possible to generate corrupt documents (part of #8359) 2014-02-10 19:22:49 +01:00
Juergen Spitzmueller
07baa69875 Do not issue module warnings when just cloning a buffer (#8864) 2014-02-10 08:40:35 +01:00
Juergen Spitzmueller
8431f55f73 Rerun makeindex if all nomencl entries have been removed (#8905) 2014-02-10 07:47:47 +01:00
Uwe Stöhr
a09bdcaa68 German UserGuide.lyx: add missing section about proper names 2014-02-10 01:20:01 +01:00
Uwe Stöhr
401d87f1a3 lyx2lyx/Preamble.cpp: fix bug 8723 also for branch 2014-02-09 23:23:51 +01:00
Uwe Stöhr
5726535d96 BufferParams.cpp: fix bug #8613 also for branch 2014-02-09 23:17:38 +01:00
Juergen Spitzmueller
b6b1ab890d Rerun makeindex if all nomencl entries have been removed (#8905) 2014-02-09 14:00:05 +01:00
Uwe Stöhr
6a8269033b status.20x: document today's fixes 2014-02-08 05:46:12 +01:00
Vincent van Ravesteijn
ea6f56d564 Compare: Add the authors from the 'other' document
Otherwise the resulting document may contain references to authors that are not present in the author list, which results in a crash.

Fixes-bug: #8769
2014-02-07 23:54:41 +01:00
Vincent van Ravesteijn
1f13491f06 Return true to indicate we might have invalidated the cursor
If we don't do so, Cursor::notifyCursorLeavesOrEnters might continue with
an invalidated cursor.

Fixes-bug: #8329
2014-02-07 23:54:32 +01:00
Vincent van Ravesteijn
e8242cbee6 Do not try to track_change an auto-deleted bibitem
We are not capable of handling two bibitems within one biblio paragraph.
That's why we have functions like Paragraph::brokenBiblio() and
Paragraph::fixBiblio(). So, if we fix the biblio by deleting the second
bibitem, we should not keep it as deleted.

This code caused a crash because the inset was released, but still kept as
deleted.

Fixes-bug: #8646.
2014-02-07 23:54:21 +01:00
Vincent van Ravesteijn
a6fce04f39 Fix wrong painting of lines right of multicol
We should skip the other cells that are part of the multicolumn before we find the cell right to the current one.

Fixes-bug: #8082
2014-02-07 23:23:02 +01:00
Uwe Stöhr
690cdcdac5 fr.po: update for Branch from Jean-Pierre 2014-02-02 23:59:47 +01:00
Richard Heck
d3c39e99ac Typo. 2014-01-31 09:40:45 -05:00