Commit Graph

20096 Commits

Author SHA1 Message Date
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
Stephan Witt
00a7f002db Fix the missing dynamic menus in general and restore correctly from fullscreen. 2014-01-29 19:20:01 +01:00
Jean-Marc Lasgouttes
d187be8205 Do not skip space at start of row (fixes #8947, #8838)
TextMetrics::getColumnNearX (x -> pos translation) has special code to
ignore spaces at the beginning of a row, but neither the display code
nor TextMetrics::cursorX (pos->x translation) follow this logic. One
might argue that spaces should actually be ignored (like LaTeX does),
but this leads to UI issues and is probably too difficult to
implement.
(cherry picked from commit bab58480bc)
2014-01-29 11:38:45 -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
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
a9f9c1bc6e Add comment. 2014-01-24 12:41:22 -05:00
Stephan Witt
5a5d6a524c Work around a bug with crash on view close on Mac OSX.
See also https://bugreports.qt-project.org/browse/QTBUG-25399
It improves the situation with LyX ticket #8063 and fixes #8062 for Cocoa builds
2014-01-20 21:22:59 +01:00
Stephan Witt
85bd5428cb back port from trunk:
fix Symbols dialog box grid size in case of broken QFontMetrics::maxWidth()
2014-01-04 20:37:38 +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
5318d2fa7d Fix crash when using context menu in empty outliner
Fixes: #8885
2013-11-16 11:19:11 +01:00
Juergen Spitzmueller
596b9f8607 Fix shortcut clash (bug #8878)
Patch by charley
2013-11-12 16:37:33 +01:00
Juergen Spitzmueller
52fe53676a fix macro order for newsubfloat 2013-10-13 11:49:29 +02:00
Georg Baum
2ad994d1d6 Make encoding conversions thread safe
This is the result of the discussion on the list "2.1.0 Blocker". Thanks to
all contributors!
The main idea is to use thread-local storage for all static variables.
This solution does not need any mutex. For more details, see the comment in
unicode.h.
2013-10-12 13:27:05 +02:00
Juergen Spitzmueller
b9976f5929 Fix unbalanced bracket problem with CJK
The bug was introduced with commit [2af09e2e/lyxgit], where the unnecessary trailing bracket in CJK environments was suppresed, but not the preceding bracket (which is only output if CJK is a secondary language).
2013-10-11 12:35:22 +02:00
Jean-Marc Lasgouttes
df8d2a5a87 Fix bug #8859: crash on alignment of two cells in tabular
The solution is the same as the other text-properties lfuns: use special loops when there is a multi-cell selection.
2013-10-07 12:11:34 +02:00
Richard Heck
92e574a70d Fix obvious oversight. 2013-08-30 13:17:53 -04:00
Uwe Stöhr
14fb17d76d LaTeXFeatures.cpp: compilation fix for last commit
(thanks to the latest TortoiseGit update cherry picking and even reverting is no longer possible, argh!)
2013-07-27 23:06:31 +02:00
Uwe Stöhr
a021548b7d LaTeXFeatures.cpp: fix bug #8731 for branch 2013-07-27 22:27:40 +02:00
Juergen Spitzmueller
ba01753624 Fix setting of is_child runparam if grandchildren are involved 2013-07-22 10:32:21 +02:00
Juergen Spitzmueller
7c058e3c63 Trivial fix: escape ampersands in file names before pushing to tab header (#8757) 2013-07-20 16:07:18 +02:00
Juergen Spitzmueller
2abe461b5c Fix state of certain language packages (polyglossia, japanese) in children (#8779) 2013-07-18 15:19:36 +02:00
Juergen Spitzmueller
db8abfec04 Properly nest ulem commands within other font changes
This reverts the wrong fix to #8424 which caused #8733 and fixes both problems properly
2013-07-11 21:24:57 +02:00
Juergen Spitzmueller
2dfe540371 Fix problem with unbalanced braces in XeTeX output (bug #8765) 2013-07-11 18:05:50 +02:00
Juergen Spitzmueller
0f72029c9b Fix toggling of 'misc' font options (bug #8764) 2013-07-07 18:01:59 +02:00
Richard Heck
f3097ffe76 Fix bug #8746: Images have to have alt tags. 2013-06-12 17:28:32 -04:00
Julien Rioux
aa475ea70c Initialize BibTeXInfo modifier to zero, always. 2013-05-26 19:43:05 +02:00
Julien Rioux
3e5c9e51de Show insets as text in the formatted bibliography entry. 2013-05-26 19:39:10 +02:00
Julien Rioux
43893c16ca Update a bibitem label also when it is emptied.
It is valid for a label to be empty, but up to now the bibliography
information was not updated when a label was emptied.
2013-05-26 19:39:09 +02:00
Jean-Marc Lasgouttes
4d267e4f79 Fix bug #8627: Command line switches to change branch do not appear to work
Move the handling of branch-(de)activate(master) to Buffer. This code was moved to Bufferview in [3a03e71c/lyxgit] because a cursor was necessary to call Undo::recordUndoFullDocument(). However, it turns out that the undo code is already prepared to handle an empty cursor (and do nothing in this case).

Therefore we do that and move the branch code to Buffer where it belongs.

Note that there was a bug in the previous code that broke undo support: recordUndo should always be called _before_ doing any change.
2013-05-08 12:56:21 +02:00
Jean-Marc Lasgouttes
0d4bc37fe6 Fix bug #3199: change-next may leave empty lines behind
Using Cursor::setCursor or even BufferView::setCursor is often a bad
idea since it does not run DEPM. In this case (and other cases in
f&replace code) it is better to use BufferView::mouseSetCursor (which
should maybe be renamed...).
2013-05-08 12:28:56 +02:00
Jean-Marc Lasgouttes
0c1eb71448 Some potential bugs spotted by llvm/clang
src/TextClass.h
src/insets/InsetTabular.h

  Overloaded virtual method missing the 'const' qualifier

src/insets/InsetCommandParams.h

  Missing constructor (breaks compilation with llvm/clang)

src/frontends/qt4/GuiWorkArea.cpp

  Missing parenthesis: `+' has priority over `?:' (I do not know
  whether this has a visible effect).

src/mathed/InsetMathFont.cpp

  Use of == instead of = in mathmlize()
2013-05-08 12:08:56 +02:00
Richard Heck
594dcd885a Default font for an InsetLayout should be to inherit everything.
Fixes bug #8610.
(cherry picked from commit 6e25ae3272)
2013-05-07 11:49:56 -04:00
Richard Heck
e3875398c7 Don't try to show the status message if we are busy.
Intended to fix #8523.
(cherry picked from commit 6dac777dbc)
2013-05-07 11:32:04 -04:00
Jean-Marc Lasgouttes
36e4d210d1 Fix bug #8633: change tracking: paragraph break is restored by undo
A recordUndo call was missing in this case.
2013-04-28 20:57:18 +02:00
Tommaso Cucinotta
1129eb0342 Fixed issue #8543 also for advanced search (cursor moved at proper end of selection before starting Find Advanced operation). 2013-04-21 22:39:28 +01:00
Jean-Marc Lasgouttes
d4b960c5f4 Fix bug #8370: crash when searching for next change
Cursor::backwardPos() may enter in a nested inset, while CursorSlice::backwardPos() will not.
2013-04-08 09:44:16 +02:00
Juergen Spitzmueller
f7d5fb78aa Remove redundand widget 2013-03-29 10:18:44 +01:00
Juergen Spitzmueller
ab5306803e Split the overcrowded and chaotic UI pref pane into two (#7524) 2013-03-29 10:08:25 +01:00
Jean-Marc Lasgouttes
9670fabe97 Putenv requires a char *, for some reason. 2013-03-28 14:07:06 +01:00
Richard Heck
36bec04a13 Create a new DocumentClass for any cloned Buffer.
Uwe says that this fixes #8425.

This has been in trunk for two weeks without problems. Hopefully,
that means it is safe.

(cherry picked from commit e2155d3d58)

Conflicts:
	src/Buffer.cpp
2013-03-27 16:21:50 -04:00
Juergen Spitzmueller
340529920e Make \lyxadded and \lyxdeleted robust (#8435).
(cherry picked from commit 39ec866f68)
2013-03-27 16:14:52 -04:00
Richard Heck
00e3711c05 Clean id attributes for citations before outputting them.
For some reason, this was done in trunk but never got to
branch.
2013-03-27 16:05:09 -04:00
Richard Heck
40da79fe73 Use master buffer's setting for math output type.
(cherry picked from commit c56d524cd6)
2013-03-27 14:55:52 -04:00
Richard Heck
912382e2be Disable extractFunctions() for MathML and HTML output.
Fixes bug #8609.
(cherry picked from commit dd7d76cc6c)
2013-03-27 12:11:31 -04:00
Richard Heck
5d792ae0fd Fix bug #8604: Forgot not to escape the caption string in listings.
(cherry picked from commit 7dac3a2715)
2013-03-23 10:08:10 -04:00
Jean-Marc Lasgouttes
2093b90fb7 Implement inset-select-all in mathed 2013-03-22 15:57:11 +01:00
Juergen Spitzmueller
13d6d2e2c7 Revert "Fix the zombie toolbar problem (bug #8520)"
This reverts commit c72c6f8732.
2013-03-21 09:42:32 +01:00