Commit Graph

29468 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
9a3b6733c0 Revert "Second tentative fix to #8159: Undo doesn't restore environment depth correctly"
Did not mean to commit that.

This reverts commit 8f01556236.
2012-06-05 12:55:37 +02:00
Jean-Marc Lasgouttes
992eae2524 Typos 2012-06-05 12:22:13 +02:00
Jean-Marc Lasgouttes
8f01556236 Second tentative fix to #8159: Undo doesn't restore environment depth correctly
In this version, the idea is to record undo at the place where the document is modified, which is definitely cleaner.

1/ in Buffer::updateBuffer, add a recordUndo, with the caveat that a
   const_cast has to be used

2/ in GuiApplication::dispatch, add an extra undo group that
   encompasses the updateBuffer call. Some other undo groups may be
   redundant now, but it is not a problem since they do not cost
   anything.
2012-06-05 11:32:56 +02:00
Jean-Marc Lasgouttes
5b531b56ef Revert "Tentative fix to #8159: Undo doesn't restore environment depth correctly"
This reverts commit e3854bb59b.
2012-06-05 11:32:56 +02:00
Richard Heck
8b2aab9b3d Style. 2012-06-04 13:42:46 -04:00
Richard Heck
7ef8df460a Fix crash reported by Tommaso:
http://marc.info/?l=lyx-devel&m=133876924408431&w=2
The problem here is that the copy_params() routine in FindAndReplace.cpp
created a new DocumentClass, but it never updated its Buffer to reflect
that new DocumentClass. So its Paragraphs still contained points to the
Layouts in the old DocumentClass which, since ead697d4b6, gets garbage
collected once it is no longer needed. So the Layout doesn't exist, and
we crash.
2012-06-04 13:39:24 -04:00
Richard Heck
1078dba130 Fix crash reported by Scott. Forgot to change some pointers to
shared_ptr.
2012-06-04 13:04:26 -04:00
Jean-Marc Lasgouttes
ad7deaabeb Fix bug #7956: Assertion When Trying to Paste Into Table
For some unknown reason, the paste code likes to call Cursor::setSelection(), which is not appropriate here since we are not trying to set a selection at this point.
2012-06-04 17:05:43 +02:00
Uwe Stöhr
e525ee6db4 UserGuide.lyx: add a LyX 2.1-specific sentence proposed by Jürgen 2012-06-04 01:17:27 +02:00
Uwe Stöhr
1c8606e78e UserGuide.lyx: some changes for the thesaurus description proposed by Jürgen 2012-06-04 01:12:02 +02:00
Uwe Stöhr
a3d3e7984b uk.po: updates from Yuri 2012-06-04 00:07:43 +02:00
Uwe Stöhr
dc5dc850bf installer: implement new method to select hunspell and thesaurus dictionaries and to download the selected ones (final part 2) 2012-06-03 23:55:21 +02:00
Uwe Stöhr
b4aaa1b5bb languages: add missing language codes, fixes bug #8183 2012-06-03 23:49:24 +02:00
Uwe Stöhr
068b25315c installer: implement new method to select hunspell and thesaurus dictionaries and to download the selected ones (part 1) 2012-06-03 17:17:01 +02:00
Uwe Stöhr
df0648e62a splash.lyx: port from branch 2012-06-03 17:09:53 +02:00
Juergen Spitzmueller
4e8644bc1d Merge branch 'master' of git.lyx.org:lyx 2012-06-03 10:32:20 +02:00
Juergen Spitzmueller
af59dffeda Add missing undo recording.
This adds a change of the printindex type (with multiple indices) to the undo stack and marks the buffer dirty on that action (bug #8182)
2012-06-03 10:31:38 +02:00
Uwe Stöhr
32cf81058d installer: install a Perl interpreter to MiKTeX to fix bug #8181 2012-06-02 20:40:13 +02:00
Uwe Stöhr
09f91910e6 - UserGuide.lyx: 3 small fixes
- German UserGuide.lyx: translation again
2012-06-02 03:18:44 +02:00
Uwe Stöhr
ee2c9d3631 installer: a new MiKTeX installer version is out 2012-06-02 02:10:24 +02:00
Uwe Stöhr
d90bcd1f5a - UserGuide.lyx: adapt style of description of split indexes (the feature is btw. currently broken)
- German UserGuide.lyx: some further translations
- Japanese UserGuide.lyx: add missing section about split indexes
2012-06-02 02:09:36 +02:00
Uwe Stöhr
fc74599e87 - UserGuide.lyx: fix some typos and an unclear description
- German UserGuide.lyx: more translations and corrections
2012-06-01 02:27:36 +02:00
Uwe Stöhr
e489adea5f UserGuide.lyx:
- decline today's change because the text states "is explained in the chapter Tables of the Embedded Objects manual" So no need to describe LaTEX special again
- revert fileformat change; please keep the fileformat is possible unless you describe a new feature of LyX 2.1
2012-06-01 00:54:24 +02:00
Richard Heck
ead697d4b6 Deal with memory issue reported some time ago in connection with DocumentClass
objects. The problem that led to the leak is that these objects can be held in
memory long after the Buffer that created them is gone, mostly due to their
use in the CutStack. So they were previously held in a storage facility, the
DocumentClassBundle. Unfortunately, they were now being created too often,
especially by cloning. It's not really a leak, because they're accessible, but
we weren't ever destroying them.

This new approach uses a shared_ptr instead.

Thanks to Vincent for pointing out const_pointer_cast.
2012-05-31 12:34:29 -04:00
Richard Heck
03da96e0f7 Minor cleanup: We should use the usual conventions for
InsetLayout names.
2012-05-31 12:24:08 -04:00
Richard Heck
be89d37bd4 Properly initialize variable. This should fix the problem
reported here:
	http://marc.info/?l=lyx-devel&m=133775786222603&w=2
by Scott.
2012-05-31 12:04:09 -04:00
Pavel Sanda
262c2e95a9 Tabular.ui: Moving Latex argument field to column section.
Forgotten patch from John Tapsell.

Documentation moved from UI to User Guide.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg173987.html

This was here for ages, no need to rush into branch.
2012-05-31 15:36:33 +02:00
Pavel Sanda
f692181917 Fix #8180: Page break on current row can't be unchecked.
Patch from John Tapsell
2012-05-31 13:56:07 +02:00
Pavel Sanda
eb4a1074bf Forgotten permissions 2012-05-31 13:01:39 +02:00
Pavel Sanda
83f493d8ac Port suggestion to trunk 2012-05-31 12:47:08 +02:00
Pavel Sanda
b5edeac1e8 Forgotten patch from Scott Kostyshak. 2012-05-31 12:33:13 +02:00
Uwe Stöhr
e60a139d3f ported from branch:
- German UserGuide.lyx: many translations
- English UserGuide.lyx: some grammar and some style fixes
2012-05-31 00:45:26 +02:00
Uwe Stöhr
52db81fa22 - German UserGuide.lyx: some translations
- German Additional.lyx: some ports from branch
- English UserGuide.lyx: a grammar fix
2012-05-30 01:24:03 +02:00
Juergen Spitzmueller
ab3491adef Fix crash when removing last converter (bug 8178) 2012-05-29 14:21:29 +02:00
Juergen Spitzmueller
9fc92f783c Load bibtopic after hyperref (bug #8005) 2012-05-29 13:25:30 +02:00
Uwe Stöhr
158b398d28 German userGuide: port some changes from branch 2012-05-29 00:49:57 +02:00
Richard Heck
c1e3d795f6 A few more small optimizations noted along the way. 2012-05-28 18:21:22 -04:00
Jean-Marc Lasgouttes
a756403301 "Performance" fixes suggested by cppcheck
While cppcheck did not turn out any suspicious error messages, using
the "performance" flag highlighted several nitpicks in three categories
 * do not use it++ for iterators, ++it is better
 * do not use size() to test for emptyness, empty() is here
 * do not use "const T" as a function parameter, "const & T" is better

I doubt that any of these is a real performance problem, but the code is cleaner anyway.
2012-05-28 22:42:44 +02:00
Juergen Spitzmueller
56118ce4b1 apostrophe must nt be terminated 2012-05-27 13:10:54 +02:00
Uwe Stöhr
ac6da262f1 installer:
- install also Qt's image plugins for faster image loading
- update some versions and paths
2012-05-27 02:16:57 +02:00
Uwe Stöhr
3b6bf1ee06 cmake/build.bat: correct a path proposal 2012-05-27 02:15:18 +02:00
Uwe Stöhr
5463389ec9 lyx2lyx/lyx_2_1.py: remove 2 warnings I accidentally just committed 2012-05-26 19:02:32 +02:00
Uwe Stöhr
7b68005875 lyx2lyx/lyx_2_1.py: fix #8172 2012-05-26 19:00:03 +02:00
Juergen Spitzmueller
25556fe4d9 add missing IPA glyph 2012-05-26 16:51:37 +02:00
Juergen Spitzmueller
6ddcfb87e4 Fix macro termination in IPA inset if next character uses a TIPA shortcut 2012-05-26 16:36:24 +02:00
Pavel Sanda
1b1f9d05d9 compile fix 2012-05-26 10:16:20 +02:00
Vincent van Ravesteijn
655a4f5515 Fix painting of hidden tabbar on gtk
When there is a single document open, the tabbar gets hidden. The only and selected tab is still visible though as a break in the line delining the tabwidget. To fix this we paint the tabwidget ourselves and remove the presence of the hidden tab.
2012-05-25 19:17:48 +02:00
Vincent van Ravesteijn
4c3a97d96e Fix bug #8170: Crash when client disconnects unexpectedly
When the socket does not exist anymore, we should not try to access it. In
trying to do so, std::map will create a new shared_ptr but this pointer
doesn't point at anything. To prevent this, we explicitly check whether
the socket is available.
2012-05-24 13:55:41 +02:00
Pavel Sanda
3476a6f1d4 * cs/Tutorial.lyx typos 2012-05-23 22:00:33 +02:00
Pavel Sanda
1a45c99a7d Trac browse SVN -> GIT 2012-05-23 17:35:08 +02:00