lyx_mirror/src
Jean-Marc Lasgouttes c9fefd5a2c Fix bad cursor positioning when entering an inset
The test added at 359aef92 was incorrect. Actually, Inset::editXY
returns the inset when it is edited and also when it is not, which
can be confusing. So if we are unlucky and the slices positions in the
text area and in the inner inset match, the code below triggers and
many bad things can happen.

Also improve the documentation of Inset::editXY and TextMetrics::editXY.

Fixes #10691.
2017-06-12 13:51:24 +02:00
..
client Add verbose option 2016-08-17 22:32:14 +02:00
frontends Switch parameters validation even before applying the changes 2017-06-12 11:54:59 +02:00
graphics If the external modification is a deletion, do not ask for reloading. 2017-06-11 19:51:17 +02:00
insets Fix bad cursor positioning when entering an inset 2017-06-12 13:51:24 +02:00
mathed Give a 2 pixels space for markers around math objects 2017-06-09 11:58:26 +02:00
support Remove FileMonitorBlocker which does not work reliably on all platforms 2017-06-11 19:51:17 +02:00
tests Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
tex2lyx Fix bug #9101 2017-06-07 00:55:23 +02:00
.gitignore
AppleSpellChecker.cpp Remove unused include file. 2016-05-29 17:55:45 -04:00
AppleSpellChecker.h
AspellChecker.cpp
AspellChecker.h
Author.cpp
Author.h
BiblioInfo.cpp Correct restoration of citation style selection between engine switches 2017-06-10 14:29:07 +02:00
BiblioInfo.h Correct restoration of citation style selection between engine switches 2017-06-10 14:29:07 +02:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp
BranchList.h
buffer_funcs.cpp Allow LyX to open empty files (created, e.g., via "touch"). 2017-01-19 15:34:45 -05:00
buffer_funcs.h
Buffer.cpp Unhide buffers that are marked dirty as a result of external modifications 2017-06-11 19:51:17 +02: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 Simple cache for information on exportable formats, since we seem 2016-10-20 23:07:13 -04:00
BufferList.h Simple cache for information on exportable formats, since we seem 2016-10-20 23:07:13 -04:00
BufferParams.cpp Output default mathindent value as "default" 2017-06-07 10:53:37 +02:00
BufferParams.h Fix bug #9101 2017-06-07 00:55:23 +02:00
BufferView.cpp Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
BufferView.h Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
Bullet.cpp
Bullet.h
Changes.cpp Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01: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 Cmake build: Adapt handling of mytheslib to automek behaviour 2017-03-07 14:27:08 +01:00
CmdDef.cpp
CmdDef.h
Color.cpp Color.cpp: fix bug #10656 2017-05-09 00:09:10 +02:00
Color.h
ColorCode.h
ColorSet.h
Compare.cpp Fix bug #10295. 2017-06-04 18:30:55 -04:00
Compare.h
CompletionList.h
Converter.cpp Properly track the lifetime of signals2::slots (#8261) 2017-06-11 19:51:17 +02:00
Converter.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
ConverterCache.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
ConverterCache.h
CoordCache.cpp
CoordCache.h
Counters.cpp New layout tags for better counter handling 2016-10-14 20:08:12 +02:00
Counters.h New layout tags for better counter handling 2016-10-14 20:08:12 +02:00
Cursor.cpp Smarter Ctrl+{Left,Right} in math. 2017-05-09 23:28:32 +02:00
Cursor.h When pressing math with the mouse, move to the closest edge (#9748) 2017-02-18 23:03:54 +01:00
CursorSlice.cpp Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CursorSlice.h Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CutAndPaste.cpp Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01: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
Dimension.h Only display a blue rectangle for editable empty insets 2016-11-16 18:33:02 +01:00
DispatchResult.h
DocIterator.cpp Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01:00
DocIterator.h Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01: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
EnchantChecker.h
Encoding.cpp Do not add symbols twice to Encoding::symbolsList() 2017-05-01 17:34:25 +02:00
Encoding.h Fix bug #9616 2016-09-10 13:36:45 +02: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 Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
factory.h
Floating.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
Floating.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
FloatList.cpp
FloatList.h
Font.cpp Do not output a \par inside a local language switch command 2017-06-04 03:14:14 +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 Add support to cross out characters 2017-04-05 00:01:19 +02:00
FontInfo.h Add support to cross out characters 2017-04-05 00:01:19 +02:00
FontList.cpp Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02: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 This patch does two closely related things. 2016-06-27 18:16:35 -04:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Graph.h
HunspellChecker.cpp Correct path names were to look for RPM based dictionaries for hunspell on Linux. 2016-05-29 17:55:44 -04:00
HunspellChecker.h
IndicesList.cpp
IndicesList.h
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 Add perf comment 2016-06-12 19:17:33 +01:00
KeyMap.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
KeySequence.cpp
KeySequence.h
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 Support for multiple bibliographies setting "per child" 2017-02-04 19:23:45 +01:00
LaTeX.h Properly track the lifetime of signals2::slots (#8261) 2017-06-11 19:51:17 +02: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 Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
LaTeXFonts.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Fix computation of InsetLayout arguments for InsetText 2017-05-13 16:12:25 +02:00
Layout.h Fix computation of InsetLayout arguments for InsetText 2017-05-13 16:12:25 +02:00
LayoutEnums.h Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
LayoutFile.cpp Allow Input of local includes from local layout files 2017-03-01 09:19:18 +01:00
LayoutFile.h
LayoutModuleList.cpp
LayoutModuleList.h
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 Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Lexer.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
lyx_commit_hash.h.in
LyX.cpp Revert "Change default working directory from ~/ to "."" 2017-05-09 07:50:45 -04:00
LyX.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXAction.cpp Lock toolbars (#10283) 2017-05-07 14:17:54 +02:00
LyXAction.h
lyxfind.cpp findadv: amend [8c101829/lyxgit] check that opt.find_buf_name is found in theBuffers(). 2017-05-03 17:32:31 +02:00
lyxfind.h Initialize members spotted by coverity 2017-03-08 16:37:53 +01:00
LyXRC.cpp Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
LyXRC.h Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
LyXVC.cpp Disable edition when external modifications are detected 2017-03-11 00:50:57 +01: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 Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
MetricsInfo.h Some code factoring for changing mode. 2017-01-03 20:18:48 +01:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h
Mover.cpp
Mover.h Mover.h: let move be defined 2017-04-24 10:53:39 +02:00
output_docbook.cpp Fix missing includes after change 670efa8f64 2016-07-04 12:11:24 +02:00
output_docbook.h
output_latex.cpp Fix bugs #10650 and #9598 2017-06-03 17:26:05 +02:00
output_latex.h Fix bug #10685 2017-05-30 17:57:37 +02:00
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp Add support to cross out characters 2017-04-05 00:01:19 +02: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
Paragraph.cpp Fix bugs #10650 and #9598 2017-06-03 17:26:05 +02:00
Paragraph.h Use Paragraph::getAlign in TextMetrics 2017-01-24 19:33:03 +01: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
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
PDFOptions.h
PersonalWordList.cpp
PersonalWordList.h
PrinterParams.cpp Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
PrinterParams.h
Row.cpp Try to preserve small details from eb4a2a19 2017-04-10 11:21:29 +02: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 Add RtL information to Row 2017-02-02 14:53:01 +01: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 Let LyX remember what documents 'needauth' converters have been authorized to run over by the user. 2016-11-23 22:17:13 +01: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
Spacing.h
SpellChecker.h Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02: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 Add support to cross out characters 2017-04-05 00:01:19 +02:00
Text3.cpp Simplify before clean-up before following bugfix 2017-05-13 16:12:25 +02:00
Text.cpp Add support to cross out characters 2017-04-05 00:01:19 +02:00
Text.h Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01:00
TextClass.cpp Try a simpler way to tell coverity that we do not care about the result 2017-03-28 10:53:45 +02:00
TextClass.h Allow Input of local includes from local layout files 2017-03-01 09:19:18 +01:00
TextMetrics.cpp Fix bad cursor positioning when entering an inset 2017-06-12 13:51:24 +02:00
TextMetrics.h Fix bad cursor positioning when entering an inset 2017-06-12 13:51:24 +02:00
Thesaurus.cpp Update bundled mythes to version 1.2.5 2017-03-06 17:08:38 +01: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 Simplify before clean-up before following bugfix 2017-05-13 16:12:25 +02: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
Undo.h
update_flags.h
VCBackend.cpp When scanning CVS skip unreadable lines 2017-03-31 11:33:34 +02:00
VCBackend.h Set window title according to platform UI 2016-09-08 15:59:44 +02:00
version.cpp
version.h Fix bug #9101 2017-06-07 00:55:23 +02:00
VSpace.cpp Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
VSpace.h
WordLangTuple.h
WordList.cpp Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00
WordList.h Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00