lyx_mirror/src
Jean-Marc Lasgouttes 4eb9b50dc6 Use the proper buffer when recording undo
The code in InsetLabel::updateReferences code changes reference insets
in potentially several buffers. When recording undo, it is important
to use the right undo stack, otherwise crashes can ensue.

Once it is done, it is neccessary to create undo groups as needed.
This is done using UndoGroupHelper. This demonstrates a shortcoming of
UndoGroup helper: if a buffer is encountered in two seperate
occasions, two undo groups will be created for this buffer. This is
not correct.

Fixes bug #10643.
2017-07-04 16:34:34 +02:00
..
client Fix trailing whitespace in txt files. 2017-07-03 13:53:41 -04:00
frontends Fix whitespace in some more files. 2017-07-03 14:46:27 -04:00
graphics Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
insets Use the proper buffer when recording undo 2017-07-04 16:34:34 +02:00
mathed Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
support Fix whitespace in some more files. 2017-07-03 14:46:27 -04:00
tests Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
tex2lyx Fix whitespace in some more files. 2017-07-03 14:46:27 -04:00
.gitignore
AppleSpellChecker.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
AppleSpellChecker.h
AspellChecker.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
AspellChecker.h
Author.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Author.h GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
BiblioInfo.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
BiblioInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp
BranchList.h
buffer_funcs.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
buffer_funcs.h
Buffer.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Buffer.h Disable edition when external modifications are detected 2017-03-11 00:50:57 +01:00
BufferEncodings.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
BufferEncodings.h
BufferList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
BufferList.h Simple cache for information on exportable formats, since we seem 2016-10-20 23:07:13 -04:00
BufferParams.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
BufferParams.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
BufferView.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
BufferView.h Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
Bullet.cpp
Bullet.h
Changes.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Changes.h Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
Chktex.cpp Remove boost/format support 2016-05-29 17:55:45 -04:00
Chktex.h Remove boost/format support 2016-05-29 17:55:45 -04:00
Citation.h Support for "qualified citation lists" 2017-01-21 14:25:17 +01:00
CiteEnginesList.cpp Basic support for natbib & jurabib options 2017-01-13 18:23:42 +01:00
CiteEnginesList.h Basic support for natbib & jurabib options 2017-01-13 18:23:42 +01:00
CMakeLists.txt Fix trailing whitespace in txt files. 2017-07-03 13:53:41 -04:00
CmdDef.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
CmdDef.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Color.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Color.h
ColorCode.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ColorSet.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Compare.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Compare.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CompletionList.h
Converter.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Converter.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ConverterCache.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
ConverterCache.h
CoordCache.cpp Improve debug message 2015-11-20 22:43:45 +01:00
CoordCache.h Get rid of ParagraphMetrics::insetDimension 2015-10-19 13:17:16 +02:00
Counters.cpp New layout tags for better counter handling 2016-10-14 20:08:12 +02:00
Counters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Cursor.cpp Smarter Ctrl+{Left,Right} in math. 2017-05-09 23:28:32 +02:00
Cursor.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CursorSlice.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
CursorSlice.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CutAndPaste.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
CutAndPaste.h Make insertInset use a temporary cut-and-paste area. 2016-11-09 15:28:11 +01:00
DepTable.cpp Use FileName::lastModified() intead of stat() in DepTable 2017-03-13 17:06:42 +01:00
DepTable.h Fix compilation warning in DepTable.cpp 2017-03-20 15:38:08 +01:00
Dimension.cpp Fix LASSERT correction 2015-10-10 21:38:17 +02:00
Dimension.h Only display a blue rectangle for editable empty insets 2016-11-16 18:33:02 +01:00
DispatchResult.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
DocIterator.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
DocIterator.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
DocumentClassPtr.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
EnchantChecker.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
EnchantChecker.h
Encoding.cpp Do not add symbols twice to Encoding::symbolsList() 2017-05-01 17:34:25 +02:00
Encoding.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ErrorList.cpp Initialize pointer class member 2017-03-01 16:34:01 +01:00
ErrorList.h Move class definitions inside main class 2016-10-22 23:24:01 +02:00
Exporter.cpp
Exporter.h
factory.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
factory.h
Floating.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Floating.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
FloatList.cpp
FloatList.h
Font.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Font.h Fix bugs #10650 and #9598 2017-06-03 17:26:05 +02:00
FontEnums.h Correct computation of math font size 2016-11-21 00:02:35 +01:00
FontInfo.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
FontInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
FontList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
FontList.h Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
Format.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Format.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
FuncCode.h Change ordering of function codes 2017-05-09 16:28:40 +02:00
FuncRequest.cpp Fix typo in comment 2017-03-18 11:36:00 -04:00
FuncRequest.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Graph.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
HunspellChecker.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
HunspellChecker.h
IndicesList.cpp
IndicesList.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01:00
InsetList.h Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01:00
Intl.cpp
Intl.h
KeyMap.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
KeyMap.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
KeySequence.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
KeySequence.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Language.cpp Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
Language.h Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
LaTeX.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LaTeX.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXFeatures.cpp Was forgetting to add the caption to the list of listings 2017-06-10 21:00:43 +02:00
LaTeXFeatures.h Fix bug #9101 2017-06-07 00:55:23 +02:00
LaTeXFonts.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LaTeXFonts.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Layout.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LayoutEnums.h Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
LayoutFile.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LayoutFile.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LayoutModuleList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LayoutModuleList.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Length.cpp Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
Length.h Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
lengthcommon.cpp Length.cpp: add new unit representing \baselineskip 2017-04-08 03:30:21 +02:00
Lexer.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Lexer.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyx_commit_hash.h.in
LyX.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LyX.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXAction.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LyXAction.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyxfind.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
lyxfind.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LyXRC.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LyXRC.h Use a combo box instead of a check box for selecting the listings package 2017-06-12 17:24:26 +02:00
LyXVC.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LyXVC.h Do some caching of window title and related UI 2016-10-19 11:59:47 +02:00
lyxwinres.rc
main.cpp Avoid an assertion when compiling in debug mode with MSVC 2015 2017-04-12 21:19:42 +02:00
Makefile.am Rewrite mathindent without HSpace class 2017-04-19 17:55:56 +02:00
MetricsInfo.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
MetricsInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h
Mover.cpp
Mover.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
output_docbook.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
output_docbook.h
output_latex.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
output_latex.h Fix bug #10685 2017-05-30 17:57:37 +02:00
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
output_xhtml.h Add support to cross out characters 2017-04-05 00:01:19 +02:00
output.cpp Account for unicode chars in tempdir path on Windows 2017-03-28 12:05:52 +02:00
output.h
OutputEnums.h
OutputParams.cpp Support for multiple bibliographies setting "per child" 2017-02-04 19:23:45 +01:00
OutputParams.h Warn re mixed layouts only for export (#10645) 2017-05-01 20:08:12 -04:00
paper.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
Paragraph.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Paragraph.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ParagraphList.h
ParagraphMetrics.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
ParagraphMetrics.h Take inset dimension into account in row signature 2016-06-03 11:21:09 +02:00
ParagraphParameters.cpp
ParagraphParameters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
PDFOptions.h Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
PersonalWordList.cpp
PersonalWordList.h
PrinterParams.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
PrinterParams.h
Row.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Row.h Revert "When selecting text with the mouse, inset selection happens in the middle" 2017-04-06 15:17:00 +02:00
RowPainter.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
RowPainter.h Add RtL information to Row 2017-02-02 14:53:01 +01:00
Server.cpp Properly track the lifetime of signals2::slots (#8261) 2017-06-11 19:51:17 +02:00
Server.h Properly track the lifetime of signals2::slots (#8261) 2017-06-11 19:51:17 +02:00
ServerSocket.cpp Fix missing include for file i/o prototypes after header cleanup in change 489dca71cd 2016-07-04 10:30:19 +02:00
ServerSocket.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
Session.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Session.h Let LyX remember what documents 'needauth' converters have been authorized to run over by the user. 2016-11-23 22:17:13 +01:00
sgml.cpp Make static counters atomic 2016-07-31 18:34:33 +01:00
sgml.h
Spacing.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Spacing.h
SpellChecker.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
TexRow.cpp Improvement to the reverse-search algorithm 2016-10-22 23:24:01 +02:00
TexRow.h Fix compilation on cygwin & others 2016-10-23 00:25:05 +02:00
texstream.cpp Thinko 2016-12-18 13:13:19 +01:00
texstream.h texstream: implement way to terminate a command depending on the context 2016-12-12 15:55:28 +01:00
Text2.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Text3.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Text.cpp Fixup 9c92494e1a: avoid crash in Inset::dissolve() 2017-06-23 19:44:54 +02:00
Text.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
TextClass.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
TextClass.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
TextMetrics.cpp Fix bad cursor positioning when entering an inset 2017-06-12 13:51:24 +02:00
TextMetrics.h Avoid crash when selecting long text 2017-06-19 12:23:17 +02:00
Thesaurus.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Thesaurus.h Forbid wrong compiler generated copy constructors 2015-09-20 19:43:06 +02:00
Toc.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
TocBackend.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
TocBackend.h Collect the outliner names for the children's tocs 2017-01-14 23:13:14 +01:00
TocBuilder.cpp Reorganise and simplify 2017-01-09 23:15:16 +01:00
TocBuilder.h Reorganise and simplify 2017-01-09 23:15:16 +01:00
Trans.cpp Avoid dereferencing an iterator at the end 2017-03-09 14:26:17 +01:00
Trans.h Add missing intializations 2015-10-10 21:04:28 +02:00
Undo.cpp Use the proper buffer when recording undo 2017-07-04 16:34:34 +02:00
Undo.h Use the proper buffer when recording undo 2017-07-04 16:34:34 +02:00
update_flags.h
VCBackend.cpp When scanning CVS skip unreadable lines 2017-03-31 11:33:34 +02:00
VCBackend.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
version.cpp
version.h Fix bug #9101 2017-06-07 00:55:23 +02:00
VSpace.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
VSpace.h
WordLangTuple.h #9496 factor out getting language from LFUN args or cursor position in speller LFUNs 2015-07-16 21:59:15 +02:00
WordList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
WordList.h Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00