Commit Graph

15549 Commits

Author SHA1 Message Date
Enrico Forestieri
1fdd008079 Fix deletion of empty last row for \smallmatrix (part of bug #7484).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38476 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-22 15:17:32 +00:00
Vincent van Ravesteijn
dfd5325e8f branch: Fix bug #7376: Crash when deleting an Inset and using dbg -any.
see r38011.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38472 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-21 19:15:02 +00:00
Vincent van Ravesteijn
a5fac4bd4f branch: Fix bug #7261: Assertion when moving up.
see r37968 and r38403.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38471 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-21 19:10:03 +00:00
Enrico Forestieri
41c6e460c6 Fix bug #7394 (Crash while selecting texts). See r38385 and r38388.
Also replace d->cursor_ with its reference cur, as done everywhere
else in BufferView::dispatch().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38408 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-15 23:14:21 +00:00
Jürgen Spitzmüller
a7376741ac * Messages.cpp (get):
- set again bind_textdomain_codeset before calling gettext.
	  This works around the infamous bug #7371

Patch from Peter Kümmel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38326 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-10 17:08:08 +00:00
Pavel Sanda
458cf0c513 Fix #5891 (the simpler version).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@38126 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 11:57:44 +00:00
Enrico Forestieri
0af83beaa7 Fix bug #7343 (No warning for missing child documents)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37995 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-22 16:46:34 +00:00
Jürgen Spitzmüller
57a34827df backport r37909:
Author: spitz
Date: Sun Mar 13 12:57:01 2011
New Revision: 37909
URL: http://www.lyx.org/trac/changeset/37909

Log:
* LaTeX.cpp: fix another variant of bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37981 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-21 09:18:25 +00:00
Pavel Sanda
adbe546d65 Backport fix for #7338
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37882 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 15:01:12 +00:00
Enrico Forestieri
a92f266a92 Fix #7326 (Latex export of child docs silently fails with uncodable characters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37803 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 16:03:31 +00:00
Enrico Forestieri
1f6ce88328 Fix bug #7310 (Greek symbols inside ERT cause unreported compile failure)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37794 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-27 14:00:47 +00:00
Jürgen Spitzmüller
9f44f179df backport r37288:
Author: baum
	Date: Fri Jan 21 20:18:27 2011
	New Revision: 37288
	URL: http://www.lyx.org/trac/changeset/37288

	Log:
	Fix bug #7252

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37792 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-27 13:12:46 +00:00
Enrico Forestieri
2c0cab1a5f Fix bug #7316 (Crash editing commands in math mode)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37760 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-22 17:54:35 +00:00
Jürgen Spitzmüller
92f86af54d Menus.cpp: QProxyStyle was introduced in Qt 4.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37694 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 16:00:42 +00:00
Vincent van Ravesteijn
24b1363ee3 branch: Fix bug #7209: Crash when clicking on unfinished command in math.
This was a similar problem as for bug #5796 in r30807. There I made sure that the position that is used for the context menu is set at mousepress. That was because also the cursor was set at mousepress and we want to get the context menu at the place where the mousebutton was pressed, and not where the mousebutton was released.

However, in this case, the position of the context menu is stored on mousepress, but we don't take into account that the cursor might move afterwards due to the DEPM.

So, the solution is not to save the position of the mouseclick, but to save the name of the context menu we requested.

PS. Perhaps we could save the cursor position, but this seems to work too.

see r37669.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37688 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 12:53:08 +00:00
Vincent van Ravesteijn
e2e87c6756 branch: Fix bug #5414: Show context menu accelerators when the context menu is shown after pressing the keyboard context menu key.
This should have been done by qt, but we can override qt by adapting the style on the windows platform.

see r37678.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37686 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 18:16:17 +00:00
Vincent van Ravesteijn
fcb7828b4b branch: Fix bug #7263: Instant Preview crash.
I guess this deserves to be sorted out better, because we are doing tricky things by deleted the object from itself.

Problem:
 
PreviewImage? has a member PreviewLoader?. PreviewImage::Impl::statusChanged() calls PreviewLoader::remove. PreviewLoader::Impl::remove removes a snippet from the cache. In the cache is a map of the snippet and a shared pointer to PreviewImage?. This means that removing the snippet from the cache, destroys the PreviewImage?. When we get back to PreviewImage::Impl::statusChanged() this will start to crash.

see r37681.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37683 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 18:04:16 +00:00
Pavel Sanda
19fb4db08a Backport next gcc 4.6 issues
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37633 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:07:25 +00:00
Jürgen Spitzmüller
6b673e1b6c backport r37581:
URL: http://www.lyx.org/trac/changeset/37581

Log:
* LaTeX.{cpp,h}:
        - refine biber support: parse blg file to get the bib file into the dependency table with biber.

I've tested this thoroughly.

No status entry necessary. This is a polishment of a previous change (r37539)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37583 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 16:47:00 +00:00
Richard Heck
e851168cb7 Fix bug #7285 in branch, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37553 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:39:02 +00:00
Jürgen Spitzmüller
202d7e34ae * LaTeX.{cpp,h}: run biber if necessary (bug 7281).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37539 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 07:04:58 +00:00
Enrico Forestieri
8df9fdee64 Don't pass the letterpaper option to the geometry package when using
default paper format and margins are explicitly set.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37485 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 08:28:36 +00:00
Jürgen Spitzmüller
ace385a559 * Fix tooltip, resolve it in a way so that so new strings are generated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37483 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 07:58:16 +00:00
Jürgen Spitzmüller
e1d54c4ffa get rid of compiler warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37461 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 15:51:01 +00:00
Jürgen Spitzmüller
8621d9d2d1 * InsetFloat.cpp (getCaption):
- Protect content which has a "]" in subfloat captions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37421 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 15:43:58 +00:00
Jürgen Spitzmüller
11ea521aa2 * GuiTabular.cpp: Fix regression introduced in r30650 (LyX 1.6.4, not in trunk):
The column width field was not cleared for non-fixed columns, leading to unwanted width applications.

I wonder why this bug was never reported.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37371 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 11:35:58 +00:00
Enrico Forestieri
480a40def2 Fix bug #7254 (LyX may insert a blank line when ending an environment)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37327 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 10:54:28 +00:00
Jürgen Spitzmüller
7aba7ef9eb * LaTeX.cpp: recognize etaremune rerun request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37312 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 09:51:11 +00:00
Jürgen Spitzmüller
5d4d36c52c * InsetBox.cpp: framed boxes can have paragraph breaks and environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37259 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 11:21:34 +00:00
Stephan Witt
96d0bb79ef #7209 avoid a crash in inMacroMode(): one cannot get the previous atom of an empty math cell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37163 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-10 10:31:20 +00:00
Enrico Forestieri
8e8c451ca1 Fix bug #6538 (Figure: relative path changed to absolute on copy/paste)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37114 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 14:02:35 +00:00
Vincent van Ravesteijn
653e054c06 branch: Fix bug #7106: iterator out of range while copying multi-row math.
see r37108.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37112 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 12:56:54 +00:00
Uwe Stöhr
3d4865722e InsetMathSubstack.cpp: fix #2498 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37110 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 00:21:14 +00:00
Jürgen Spitzmüller
9611fc31b2 * InsetIndex does not have a dialog anymore since it's a collapsable. Also, it is (and never was) an InsetCommand.
This also fixes the crash reported at #7180. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37105 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 11:50:35 +00:00
Vincent van Ravesteijn
c0571a40f4 branch: Fix bug #5600: View source panel isn't updating after restart.
see r37096.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37103 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 10:12:40 +00:00
Vincent van Ravesteijn
68422fbb85 branch: Fix bug #7182: LyX truncates file names in the ui.
Changes:
- let filenames to be longer in window title (see r36950);
- when hovering the lastfiles menu, the full file names are shown in the statusbar (see r37083);
- when hovering the tabs, the longer name is shown as a tooltip (see r37101). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37102 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 09:49:30 +00:00
Vincent van Ravesteijn
fab3cd5dfe branch: Fix bug #7125: Insertion of a math macro cannot be undone.
see r37088.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37099 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 08:58:03 +00:00
Jürgen Spitzmüller
2c48ac2626 Fix UI glitch in the prefs dialog (bug 7190).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37082 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 17:21:37 +00:00
Vincent van Ravesteijn
61e7c1472e Add an extra safety measure in case we don't find the toolbar settings.
see r37075--r37079.

(I think this commit doesn't need a separate status log message as it fits well in the one committed in r37079.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37080 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 17:18:05 +00:00
Vincent van Ravesteijn
9e4a5c8940 branch: Fix bug #7099: Math toolbars don't autoshow.
When applying the preference we need to save the full session information, because when this information is not yet saved, we will lose it forever. We can enter the preferences without a saved state when we start LyX with a modified default.ui.

see also: r37077, r37075 and r37076.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37078 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 17:07:21 +00:00
Enrico Forestieri
7c588c5b2d Fix bug #4606 (\varPhi and similar characters not known by the LyX GUI)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37073 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 14:19:15 +00:00
Vincent van Ravesteijn
679dfb5793 branch: Fix bug #7200: Crash when replacing newline by InsetQuote?.
We have to call cap::replaceSelection before determining whether we can insert an InsetQuote? or a normal quote.

At least we should have updated the par variable after calling cap::replaceSelection, because the paragraph might have been deleted.

see r37063.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37071 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 12:50:47 +00:00
Enrico Forestieri
844d8d0b27 Fix bugs #7174 (Math selection broken)
and      #7193 (Math macro template painting problem)

No status.16x entry is necessary for #7174 as this fixes a regression
introduced during the 1.6.9svn cycle by the fix for #4889.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37037 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 15:36:35 +00:00
Vincent van Ravesteijn
b4306a687a branch: Fix bug #7187: Font painting problems with emulated scaling.
When creating the QFontMetrics object, we should specify a QPaintDevice. 0 is a paint device which is screen-compatible or pixmap-compatible. This makes sure that the correct DPI is used in font metrics calculations.

see r37030, and http://bugreports.qt.nokia.com/browse/QTBUG-16331.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37036 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 14:25:15 +00:00
Enrico Forestieri
5738192a31 Fix bug #7183 (User math macros defined in child documents are shadowed on loading)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36986 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-21 17:28:07 +00:00
Enrico Forestieri
0fa7d11220 Fix bug #7090 (Segfault in refreshing instant preview when math macro changes)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36873 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 22:25:17 +00:00
Vincent van Ravesteijn
0f99c43425 branch: Fix bug #6950: Wake up from waiting state after encountering a file parsing error.
see r35714.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36866 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 14:44:19 +00:00
Vincent van Ravesteijn
4e68265745 branch: Fix bug #7077: Listings validator doesn't recognize "breakatwhitespace".
see r36496.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36865 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 14:38:35 +00:00
Vincent van Ravesteijn
50e1309784 branch: Fix bug #1839: Allow Ctrl+Arrow to move between table cells.
see r35812.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36864 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 12:54:03 +00:00
Vincent van Ravesteijn
e9807a7e80 branch: Fix bug #4849: Split cell always enabled in (context) menu.
see r36622.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36863 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 11:22:47 +00:00