Commit Graph

718 Commits

Author SHA1 Message Date
Juergen Spitzmueller
c06c1c3195 In Paragraph::changeCase, correctly track the font of the changed characters (fix crash)
Fixes: #7943
2014-03-24 16:21:20 +01:00
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
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
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
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
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
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
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
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
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
Uwe Stöhr
690cdcdac5 fr.po: update for Branch from Jean-Pierre 2014-02-02 23:59:47 +01:00
Stephan Witt
00a7f002db Fix the missing dynamic menus in general and restore correctly from fullscreen. 2014-01-29 19:20:01 +01:00
Richard Heck
3ac29dd9be Status update for last commit. 2014-01-29 11:41:32 -05:00
Richard Heck
8c07f7fcc0 Fix bug discovered by Kornel. See
http://marc.info/?l=lyx-devel&m=138590578911716&w=2
If you look at Buffer.cpp, around line 4351, there was a comment about bug 5699. We are seeing the
same crash. The problem is that, although the master does have a GUI, that GUI is in a different window. So the structureChanged() call we do during updateBuffer() is for the TOC in that window, not the TOC in the window we are actually in. So our TocModel::toc_ has been reset and is invalid, though the widget itself has not been updated and looks fine.

This patch tests whether the master is in the same window as the buffer we are updating.

A problem remains, which is noted in a comment.

(cherry picked from commit 3f62601a8f)

Conflicts:
	src/Buffer.cpp
2014-01-29 11:35:48 -05:00
Jean-Marc Lasgouttes
75bab51a8a Fix a couple of compilation warnings 2014-01-28 12:08:35 +01:00
Jean-Marc Lasgouttes
a01c0e495f Handle undo in `branch-add' LFUN
Backport of 2a99afee94.
2014-01-28 11:48:49 +01:00
Jean-Marc Lasgouttes
e4cf514e4a Quick workaround for detection of Qt/Mac using pkg-config 2014-01-28 11:32:50 +01:00
Stephan Witt
535c9ea078 Override QMainWindow::menuBar() in LyX GuiView class on Mac OSX.
This fixes the issue with missing menu entry for "Insert Branch <branch name>".
2014-01-26 18:40:23 +01:00
Richard Heck
fa8e4906de Use "#!/usr/bin/env python", as elsewhere.
(cherry picked from commit 5d94d1b3bf)
2014-01-26 11:40:07 -05:00
Richard Heck
2b0f11dd2d Reset status.20x. 2014-01-24 12:45:18 -05:00
Uwe Stöhr
bf67e60f3a fr.po: translations from Jean-Pierre 2014-01-13 00:27:35 +01:00
Uwe Stöhr
ade0748fb4 ar.po: updates from Hatim 2014-01-13 00:24:34 +01:00
Uwe Stöhr
d195f6e6bb sv.po: updates for LyX 2.0.7 from Jim 2013-12-04 01:17:59 +01:00
Richard Heck
4f09c28bdd Fix bug #8727: Text::breakParagraph() was always setting the default
layout, even if the paragraph in question requires plain layout.
(cherry picked from commit f8f1232465)
2013-12-01 13:29:45 -05:00
Juergen Spitzmueller
6fbe5b6691 French User Guide updates by Jean-Pierre 2013-11-30 11:55:13 +01:00