lyx_mirror/src
Vincent van Ravesteijn c07bd1ab52 Fix bug #7261: Assertion when moving up
There are two possibilities to add an Inset to the CoordCache:
- 1), use CoordCache::add(Inset * p, int x, int y),
- 2), use CoordCache::add(Inset * p, Dimension dim).

In the latter case, the x and y are happily initialized as 0.
Also, when one call CoordCache::has(Inset * p), it will happily
return true because the cache knows something about this inset.

In #7261, LyX asked for the (x,y) position of an Inset and
received (0,0) as an answer, although that is not the position
of the Inset.

By adding some defaults for x,y in case of initializing with
dim only will give an extra check whether the cache really
"has" the position object.

In the long run, we might want to split the cache for
dimensions and positions.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37968 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 17:54:21 +00:00
..
client
frontends * Menus.cpp: fix accelerator 2011-03-19 16:16:49 +00:00
graphics Add comment 2011-03-01 22:21:03 +00:00
insets Simplify logic in InsetRef::latex(). 2011-03-19 10:37:24 +00:00
lyxled
mathed Fix bug #7345: Crash when right clicking on displayed math with selection 2011-03-19 13:14:13 +00:00
support add link about msvc10 bug 2011-03-14 23:26:55 +00:00
tex2lyx prevent endless loop 2011-02-20 18:57:13 +00:00
AppleSpellChecker.cpp use unique LyX language name for map to apple spell checker language 2011-02-21 06:22:37 +00:00
AppleSpellChecker.h
AspellChecker.cpp #7170 simplify the hunspell dictionary lookup; use Language::lang() instead of Language::id() as speller index 2011-02-18 11:54:14 +00:00
AspellChecker.h #7043 add the implementation of a persistent personal word list for LyX spell checker, aspell and hunspell backend 2010-12-02 18:52:31 +00:00
Author.cpp Author: cosmetics. 2010-11-17 16:12:43 +00:00
Author.h Author: cosmetics. 2010-11-17 16:12:43 +00:00
BiblioInfo.cpp
BiblioInfo.h
Bidi.cpp
Bidi.h
boost.cpp
Box.cpp
Box.h
BranchList.cpp Fix crash in lyx -e latex lib/doc/Shortcuts.lyx: theApp() is 0 in batch mode. 2011-01-06 18:40:39 +00:00
BranchList.h
buffer_funcs.cpp #7357 correct the numbers by introducing two modes of word count 2011-03-18 12:50:09 +00:00
buffer_funcs.h #7357 correct the numbers by introducing two modes of word count 2011-03-18 12:50:09 +00:00
Buffer.cpp When an error occurs inside an inset, the content rather than the inset 2011-03-10 22:11:34 +00:00
Buffer.h Complete integration of texrow with otexstream and allow automatic line 2011-02-13 21:41:44 +00:00
BufferList.cpp Added possibility to retrieve internal buffers (by their tmp file-name) from the Model. 2011-02-07 20:31:09 +00:00
BufferList.h Added possibility to retrieve internal buffers (by their tmp file-name) from the Model. 2011-02-07 20:31:09 +00:00
BufferParams.cpp Fix typo. 2011-02-16 14:54:06 +00:00
BufferParams.h Introduce BufferParam to control whether CSS is output in the header of 2011-02-15 17:44:17 +00:00
BufferView.cpp Revert wrong previous commit. 2011-03-19 10:34:59 +00:00
BufferView.h Revert wrong previous commit. 2011-03-19 10:34:59 +00:00
Bullet.cpp
Bullet.h
Changes.cpp Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
Changes.h Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
Chktex.cpp
Chktex.h
Citation.h
CmdDef.cpp
CmdDef.h
Color.cpp Import notefontcolor (one more step towards a working roundtrip for the LyX documentation) 2011-01-14 20:00:55 +00:00
Color.h Import notefontcolor (one more step towards a working roundtrip for the LyX documentation) 2011-01-14 20:00:55 +00:00
ColorCode.h Removal of this color was forgotten. 2010-12-04 22:41:50 +00:00
ColorSet.h
Compare.cpp
Compare.h
CompletionList.h
Converter.cpp Finish fixing bug #6623 (Sweave cannot read local files) 2011-01-27 11:14:32 +00:00
Converter.h * configure.py: 2010-11-30 09:49:28 +00:00
ConverterCache.cpp
ConverterCache.h
CoordCache.cpp
CoordCache.h Fix bug #7261: Assertion when moving up 2011-03-19 17:54:21 +00:00
Counters.cpp OK, the previous idea, that we don't need to check the masters of other 2011-01-13 01:47:41 +00:00
Counters.h OK, the previous idea, that we don't need to check the masters of other 2011-01-13 01:47:41 +00:00
Cursor.cpp #7350 more checks to validate the DocIterator before calling locateWord() in checkNewWordPosition() 2011-03-15 10:27:41 +00:00
Cursor.h suppress the misspelled marker only when typing in a word the first time 2011-02-03 17:27:13 +00:00
CursorSlice.cpp
CursorSlice.h
CutAndPaste.cpp Unify handling of pass thru insets and paragraphs by introducing Paragraph::isPassThru. Many lfuns are now disabled in sweave chunks. 2011-01-26 11:04:42 +00:00
CutAndPaste.h
DepTable.cpp
DepTable.h
Dimension.cpp
Dimension.h
DispatchResult.h
DocIterator.cpp fix a crash when the inset containing the new word at cursor is deleted 2011-02-08 09:42:00 +00:00
DocIterator.h suppress the misspelled marker only when typing in a word the first time 2011-02-03 17:27:13 +00:00
EnchantChecker.cpp
EnchantChecker.h
Encoding.cpp fix compiler warnings in pedantic mode: remove trailing comma after last enum member 2010-12-17 19:56:51 +00:00
Encoding.h
ErrorList.cpp Fix bug #7331 (No error highlighting in child documents) 2011-03-04 13:37:14 +00:00
ErrorList.h Fix bug #7331 (No error highlighting in child documents) 2011-03-04 13:37:14 +00:00
Exporter.cpp
Exporter.h
factory.cpp fix bug 6698 2010-11-26 17:14:21 +00:00
factory.h
Floating.cpp whitespace only. 2011-03-19 17:52:00 +00:00
Floating.h Change NeedsFloatPkg to UsesFloatPkg and introduce a new float tag 2011-02-02 22:28:47 +00:00
FloatList.cpp
FloatList.h
Font.cpp Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
Font.h Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
FontEnums.h
FontInfo.cpp
FontInfo.h
FontList.cpp
FontList.h
Format.cpp Remove support for viewing URLs from hyperlinks. This is a security 2010-12-09 17:55:11 +00:00
Format.h Introduce new file format flag "menu=export" to define which document formats the File > Export menu should list. All other formats are available via the "More Formats & Options ..." (former "Custom ...") dialog. 2011-02-13 09:34:10 +00:00
FuncCode.h Fix inserting subscript/superscript with nonempty selection by creating a dedicated lfun: 2010-11-23 20:09:08 +00:00
FuncRequest.cpp whitespace 2010-11-29 10:48:40 +00:00
FuncRequest.h
FuncStatus.cpp
FuncStatus.h
Graph.cpp Use the typedef. 2011-01-19 14:29:46 +00:00
Graph.h Must be a vestige of some earlier code.... 2011-01-19 14:58:20 +00:00
HSpace.cpp
HSpace.h
HunspellChecker.cpp #7170 simplify the hunspell dictionary lookup; use Language::lang() instead of Language::id() as speller index 2011-02-18 11:54:14 +00:00
HunspellChecker.h #7043 add the implementation of a persistent personal word list for LyX spell checker, aspell and hunspell backend 2010-12-02 18:52:31 +00:00
IndicesList.cpp Fix crash in lyx -e latex lib/doc/Shortcuts.lyx: theApp() is 0 in batch mode. 2011-01-06 18:40:39 +00:00
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp #7292 make the modifiers Option and Control act on there own on mac - adjust the key bindings to apple standards where possible 2011-02-23 14:30:41 +00:00
KeyMap.h Conversion routines for bind files. 2011-01-16 19:53:36 +00:00
KeySequence.cpp #7292 make the modifiers Option and Control act on there own on mac - adjust the key bindings to apple standards where possible 2011-02-23 14:30:41 +00:00
KeySequence.h
Language.cpp fix bug #6584 2010-12-03 17:48:06 +00:00
Language.h #7170 simplify the hunspell dictionary lookup; use Language::lang() instead of Language::id() as speller index 2011-02-18 11:54:14 +00:00
LaTeX.cpp * LaTeX.cpp: fix another variant of bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled) 2011-03-13 11:57:01 +00:00
LaTeX.h Fix bug #7331 (No error highlighting in child documents) 2011-03-04 13:37:14 +00:00
LaTeXFeatures.cpp * Allow to set language package on a per-document basis (fixes bug 2909). 2011-02-03 14:17:31 +00:00
LaTeXFeatures.h * resolve conflicts of XeTeX with AMS by loading all AMS packages before fontspec. See 2010-12-08 18:42:10 +00:00
Layout.cpp make i18npreamble work with polyglossia. 2010-12-08 12:10:22 +00:00
Layout.h make i18npreamble work with polyglossia. 2010-12-08 12:10:22 +00:00
LayoutEnums.h
LayoutFile.cpp
LayoutFile.h
LayoutModuleList.cpp
LayoutModuleList.h
Length.cpp
Length.h
lengthcommon.cpp Disentangle various "in"s 2010-11-30 00:55:34 +00:00
Lexer.cpp
Lexer.h
LyX.cpp Glitch with new line breaking from Qt. 2011-03-04 18:30:40 +00:00
LyX.h Don't try to convert any of the preference files except the user's own. 2011-01-17 15:54:51 +00:00
LyXAction.cpp * doxy 2011-03-03 12:15:35 +00:00
LyXAction.h Move bind file format tag to LyXAction.cpp, and rename it. 2011-01-18 15:07:26 +00:00
lyxfind.cpp Fixes a weird bug found while playing with #7363. 2011-03-18 00:47:42 +00:00
lyxfind.h Completing r37549. 2011-02-07 23:55:02 +00:00
LyXRC.cpp * LyXRC.cpp: fix typo. although these strings are not used at all. 2011-03-13 12:06:54 +00:00
LyXRC.h now the user has control over the width of the text cursor 2011-03-11 06:11:55 +00:00
LyXVC.cpp Fix bug #7338 2011-03-07 00:37:26 +00:00
LyXVC.h Load mhchem if it is requested unconditionally, fix some typos 2010-11-21 18:07:04 +00:00
lyxwinres.rc Update years 2011-01-21 13:24:23 +00:00
main.cpp Remove unneeded include. 2010-11-17 16:14:26 +00:00
Makefile.am fix bug #7288: add configure option for external mythes library 2011-02-10 20:31:07 +00:00
MetricsInfo.cpp
MetricsInfo.h
ModuleList.cpp Fix bug #7044: Better error messages when modules are unavailable. Patch 2011-01-13 21:19:14 +00:00
ModuleList.h Fix bug #7044: Better error messages when modules are unavailable. Patch 2011-01-13 21:19:14 +00:00
Mover.cpp
Mover.h
output_docbook.cpp
output_docbook.h
output_latex.cpp Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
output_latex.h Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp Compile fix for r36670. 2010-12-03 02:42:25 +00:00
output_xhtml.h No need for two different containers here. 2010-12-02 22:11:52 +00:00
output.cpp
output.h
OutputEnums.h
OutputParams.cpp When an error occurs, don't highlight more than necessary. 2011-03-12 01:40:01 +00:00
OutputParams.h When an error occurs, don't highlight more than necessary. 2011-03-12 01:40:01 +00:00
paper.h
Paragraph.cpp * InsetSpecialChar.cpp: 2011-03-18 09:17:09 +00:00
Paragraph.h Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
ParagraphList.h
ParagraphMetrics.cpp * Introduce polyglossia support (bug 6576). 2010-11-22 12:10:16 +00:00
ParagraphMetrics.h
ParagraphParameters.cpp
ParagraphParameters.h
ParIterator.cpp
ParIterator.h
pch.h
PDFOptions.cpp PDFOptions.cpp: correct fix for bug #7048. 2011-03-08 13:15:26 +00:00
PDFOptions.h Complete integration of texrow with otexstream and allow automatic line 2011-02-13 21:41:44 +00:00
PersonalWordList.cpp fix msvc warning, somehow msvc thinks !line[0] is a boolean 2011-02-14 19:54:04 +00:00
PersonalWordList.h #7043 add the implementation of a persistent personal word list for LyX spell checker, aspell and hunspell backend 2010-12-02 18:52:31 +00:00
PrinterParams.cpp
PrinterParams.h
Row.cpp
Row.h
rowpainter.cpp *rowpainter.cpp: Squeeze warnings. 2011-03-13 21:06:16 +00:00
rowpainter.h #7120 use separate line thickness for solid and dotted lines to mark foreign, changed and misspelled text parts 2011-02-20 07:50:28 +00:00
Server.cpp Force a paragraph update after lyxserver communication (part of bug #6871) 2011-03-04 21:57:42 +00:00
Server.h The "single instance" patch. 2010-11-13 11:55:05 +00:00
ServerSocket.cpp Force a paragraph update after lyxserver communication (part of bug #6871) 2011-03-04 21:57:42 +00:00
ServerSocket.h
Session.cpp No need for a deque here. 2010-12-04 23:18:52 +00:00
Session.h No need for a deque here. 2010-12-04 23:18:52 +00:00
sgml.cpp
sgml.h
Spacing.cpp
Spacing.h
SpellChecker.h remove not needed class name for enums, whitespace 2010-12-01 08:25:17 +00:00
TexRow.cpp Make sure to associate each line of the exported latex code to the id/pos 2011-03-10 04:05:49 +00:00
TexRow.h Make sure to associate each line of the exported latex code to the id/pos 2011-03-10 04:05:49 +00:00
TexStream.cpp
TexStream.h
Text2.cpp Fix bug #6919 by splitting Inset::noFontChange() into inheritFont() and 2011-02-22 19:41:04 +00:00
Text3.cpp avoid the automatic word selection for language change when at the word boundaries, this will stop the automatic selection for words with length of one character 2011-03-09 14:15:34 +00:00
Text.cpp Remove obsolete comments. 2011-01-12 13:40:47 +00:00
Text.h Fix bug #6919 by splitting Inset::noFontChange() into inheritFont() and 2011-02-22 19:41:04 +00:00
TextClass.cpp Remove obsolete comment. 2011-02-14 12:43:56 +00:00
TextClass.h
TextMetrics.cpp TextMetrics::editXY(): don't continue executing code when asserting. 2011-03-13 16:38:36 +00:00
TextMetrics.h Remove leftover of r36485. 2010-12-06 00:25:45 +00:00
Thesaurus.cpp fix bug #7288: add configure option for external mythes library 2011-02-10 20:31:07 +00:00
Thesaurus.h
TocBackend.cpp Finish disentangling tocString(). We introduce a new method, forToc(), 2010-12-20 21:55:09 +00:00
TocBackend.h
Trans.cpp fix compiler warnings in pedantic mode: remove trailing comma after last enum member 2010-12-17 19:56:51 +00:00
Trans.h
Undo.cpp #7208 reset undo group level in Undo::clear() too 2011-01-10 09:44:55 +00:00
Undo.h Clear undo/redo stack when reloading buffer. This fixes #7208. 2011-01-09 17:55:16 +00:00
update_flags.h
VCBackend.cpp Stephan, I changed this string since the previous version was strange. 2010-11-30 00:23:34 +00:00
VCBackend.h Comment 2010-11-06 12:32:47 +00:00
version.cpp So, let's constify all globals in version.cpp... 2011-02-11 00:46:49 +00:00
version.h seems the other have different compilers ;) 2011-02-11 02:09:22 +00:00
VSpace.cpp
VSpace.h
WordLangTuple.h Fix bug #6561: Crash when using Spellchecker's language box when cursor is in math. 2010-11-10 20:06:21 +00:00
WordList.cpp
WordList.h