lyx_mirror/src
Scott Kostyshak 4ea6d81437 Fix assertion when checking if change in selection
The check for the iterator being in the same paragraph as the end of
selection was incorrect, because paragraphs in different cells could
have the same pit. We now additionally condition on having the same
idx.

This commit amends d1279875 (and thus 23de5e5e).

For discussion, see:

  https://www.mail-archive.com/search?l=mid&q=a5afd0c01a0eb9a84fd4d050d15eb23016d6f38a.camel%40lyx.org

Thanks to Jürgen.

(cherry picked from commit c5301a6495)
2018-12-28 23:56:53 -05:00
..
client Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
convert Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
frontends When cancelling saving of a children, cancel the whole process. 2018-12-25 12:15:43 +01:00
graphics Avoid duplicate generation of the same preview 2018-06-07 23:13:33 +02:00
insets Fix segfault after deleting monitor 2018-12-13 23:31:15 -05:00
mathed Fix bug 11346 2018-12-20 11:57:54 +01:00
support Keep permissions of the saved files intact. (Backporting 04fe818b22). 2018-12-14 18:50:36 +01:00
tests Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
tex2lyx Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
.gitignore
AppleSpellChecker.cpp Fix editorial whitespace error 2017-07-30 09:30:58 +02:00
AppleSpellChecker.h
AspellChecker.cpp Fix editorial whitespace issues, e.g. extra space before semicolon 2017-07-30 00:54:12 +02: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 Differentiate Buffer strings and GUI strings in citeengines 2018-01-30 08:21:21 +01:00
BiblioInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
BranchList.h
buffer_funcs.cpp Disambiguate dialog buttons 2018-09-09 10:50:01 +02:00
buffer_funcs.h
Buffer.cpp Keep permissions of the saved files intact. (Backporting 04fe818b22). 2018-12-14 18:50:36 +01:00
Buffer.h Clear bibfile cache when set of bibliography files change 2018-10-14 10:07:22 +02:00
BufferEncodings.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
BufferEncodings.h
BufferList.cpp Handle properly undo groups in embedded work areas 2017-12-23 19:21:12 +01:00
BufferList.h Handle properly undo groups in embedded work areas 2017-12-23 19:21:12 +01:00
BufferParams.cpp Copy modules into the Advanced F&R pane as well. 2018-12-11 18:05:53 -05:00
BufferParams.h Copy modules into the Advanced F&R pane as well. 2018-12-11 18:05:53 -05:00
BufferView.cpp Backport 99bfe20120. 2018-12-19 21:47:06 +01:00
BufferView.h Adapt caret height to context in mathed. 2018-05-10 12:53:30 +02:00
Bullet.cpp
Bullet.h
Changes.cpp Amend bd21aa9 2018-12-08 23:16:08 +01:00
Changes.h Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
Chktex.cpp Adapt to new ChkTeX return values. 2018-03-17 15:44:05 -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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
CiteEnginesList.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
CMakeLists.txt Updates to cmake scripts needed to build with mingw on Fedora. 2018-08-30 15:28:13 -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 Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02:00
Color.h
ColorCode.h Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02: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 Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
Converter.h Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
ConverterCache.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
ConverterCache.h
CoordCache.cpp Improve debug message 2015-11-20 22:43:45 +01:00
CoordCache.h
Counters.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Counters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Cursor.cpp Backport 641ae5c7ad. 2018-12-14 19:20:36 +01:00
Cursor.h Backport 641ae5c7ad. 2018-12-14 19:20:36 +01:00
CursorSlice.cpp Rename some macro-related insets 2017-07-05 14:46:34 +02:00
CursorSlice.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CutAndPaste.cpp Merge paragraphs when pasted into an inset that forbids multipars 2018-10-14 09:06:38 +02:00
CutAndPaste.h Do not remove character at start of paragraph when cutting 2018-09-18 22:57:41 +02: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
Dimension.h Fix embarrassing typo 2018-12-17 17:22:42 +01:00
DispatchResult.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
DocIterator.cpp Properly communicate forced encodings 2018-01-27 18:35:16 +01:00
DocIterator.h Introduce "inherit" encoding for latex_language 2018-01-20 09:22:38 +01:00
DocumentClassPtr.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
EnchantChecker.cpp Add support for enchant 2.x 2018-03-19 17:33:17 +01:00
EnchantChecker.h
Encoding.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +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 Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02: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 nesting problem with numbers in RTL text 2018-07-22 10:16:32 +02: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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02: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 Fix bug #9622 2018-12-14 18:57:48 +01:00
Format.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
FuncCode.h Fix bug #7404. 2018-12-11 17:43:17 -05:00
FuncRequest.cpp Fix #8338. 2018-04-20 23:48:50 -04:00
FuncRequest.h Fix #8338. 2018-04-20 23:48:50 -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 Support new hunspell C++ ABI if LyX is built against hunspell >= 1.5 2018-04-14 10:35:59 +02:00
HunspellChecker.h
IndicesList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
IndicesList.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
InsetList.h Fix some spelling errors reported by Sven 2017-09-22 09:34:51 +02: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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Language.h Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
LaTeX.cpp Consider sub-subfiles on log file parsing. 2018-04-15 00:04:40 -04:00
LaTeX.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXFeatures.cpp Load covington later 2018-10-13 09:49:10 +02:00
LaTeXFeatures.h Proper logos with RTL 2018-09-09 12:17:03 +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 Implement IsTocCaption for normal layouts. 2018-02-22 19:12:30 +01:00
Layout.h Implement auto-nesting. 2018-01-01 12:30:34 +01: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 bug #11055. 2018-04-15 00:29:36 -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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Lexer.cpp Fix Lexer::getLongString prefix pruning logic 2017-08-29 16:05:09 +02:00
Lexer.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyx_commit_hash.h.in
LyX.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
LyX.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXAction.cpp Fix bug #7404. 2018-12-11 17:43:17 -05:00
LyXAction.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyxfind.cpp Fix #11241, FindAdv for wedge in subscript 2018-12-11 12:12:02 +01:00
lyxfind.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LyXRC.cpp Add slightly improved error message. 2018-04-23 20:36:28 -04:00
LyXRC.h Make it possible to select (not)native file dialogs at run time 2018-03-21 10:56:57 +01: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 Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
MetricsInfo.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
MetricsInfo.h Use a unicode character for menu separator on screen 2018-09-11 10:59:26 +02:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Mover.cpp
Mover.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
output_docbook.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
output_docbook.h
output_latex.cpp Amend 2d4ac90fd2 once more 2018-09-26 17:02:18 +02:00
output_latex.h Use TeXOnePar for the inpreamble layouts 2018-02-16 17:25:06 +01:00
output_plaintext.cpp Fix bracket output in RTL languages 2018-07-21 10:40:59 +02:00
output_plaintext.h
output_xhtml.cpp Revert "ABOVE and CENTERED labels need special treatment." 2017-10-16 21:37:59 -04:00
output_xhtml.h Add support to cross out characters 2017-04-05 00:01:19 +02:00
output.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +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 Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
paper.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
Paragraph.cpp Amend a754912 once more 2018-10-14 11:18:07 +02:00
Paragraph.h Only show Accept/Reject Change options if relevant 2018-12-22 14:57:40 -05:00
ParagraphList.h
ParagraphMetrics.cpp Remove row crc computation 2018-02-15 12:29:25 +01:00
ParagraphMetrics.h Remove row crc computation 2018-02-15 12:29:25 +01:00
ParagraphParameters.cpp
ParagraphParameters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
PDFOptions.h
PersonalWordList.cpp
PersonalWordList.h
PrinterParams.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
PrinterParams.h
Row.cpp Make sure that rows are repainted when they get (un)selected 2018-02-15 12:29:25 +01:00
Row.h Make sure that rows are repainted when they get (un)selected 2018-02-15 12:29:25 +01:00
RowPainter.cpp Paint underline for insets too. 2018-09-20 17:07:10 +02:00
RowPainter.h Paint underline for insets too. 2018-09-20 17:07:10 +02:00
Server.cpp Fix LyX server on Windows 2018-08-08 13:15:56 +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 Avoid asserting when reading the session file 2017-12-02 21:37:02 +01:00
Session.h The shell escape patch 2017-08-03 13:07:41 +02:00
sgml.cpp Make static counters atomic 2016-07-31 18:34:33 +01:00
sgml.h
Spacing.cpp Fix switch of language and line spacing in InTitle commands. 2018-02-16 17:24:00 +01:00
Spacing.h Fix switch of language and line spacing in InTitle commands. 2018-02-16 17:24:00 +01:00
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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
texstream.h Amend bd21aa9 2018-12-08 23:16:08 +01:00
Text2.cpp Make DEPM respect current cursor position. 2018-12-21 22:18:40 +01:00
Text3.cpp Fix assertion when checking if change in selection 2018-12-28 23:56:53 -05:00
Text.cpp Do not remove character at start of paragraph when cutting 2018-09-18 22:57:41 +02:00
Text.h Improve DEPM 2018-09-18 23:00:46 +02:00
TextClass.cpp Differentiate Buffer strings and GUI strings in citeengines 2018-01-30 08:21:21 +01:00
TextClass.h Add special chain for Modules with OutputFormat for pLaTeX (Japanese) 2017-09-01 10:32:22 +02:00
TextMetrics.cpp Fix bug #10177. 2018-10-04 19:44:42 -04:00
TextMetrics.h Update insets position in cache in more cases 2018-02-15 12:29:25 +01:00
Thesaurus.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Thesaurus.h
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
Undo.cpp Skip paint event when in the middle of a buffer operation 2018-06-15 14:12:32 +02:00
Undo.h Skip paint event when in the middle of a buffer operation 2018-06-15 14:12:32 +02:00
update_flags.h Allow multiple calls to processUpdateFlags before redraw 2018-02-15 12:29:25 +01:00
VCBackend.cpp RCS: commit undo allowed only in unlocked state. 2018-01-11 23:47:41 +01: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
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