* src/Cursor.cpp (selHandle):
- handle mark()
* src/Text.cpp (dissolveInset):
- switch mark off before using selHandle, just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22229 a592a061-630c-0410-9148-cb99ea01b6c8
"The idea of the beforeDispX/Y_ variables in the Cursor is to hold the position
of the cursor on screen before the lyxfunc is dispatched. But to get this the
metrics must be valid. It's updated in Cursor::dispatch before the dispatch
loop.
After inserting/deleting stuff (like when deleting the selected text before
inserting the alpha) the metrics are invalid. But the handler for the alpha
calls Cursor::dispatch after the deletion and hence the crash with your second
patch.
Here is a patch fixing that:
The beforeDispatchXY variable do not belong into the Cursor::dispatch because
Cursor::dispatch is often called "manually" by many handlers to some followup
action. So this logic must go somewhere else where it is sure that is not
updated after the metrics got invalidated."
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22194 a592a061-630c-0410-9148-cb99ea01b6c8
* src/output_latex.{cpp, h}:
- Many changes in order to allow CJK in a mulitlingual context.
* src/Paragraph.cpp:
- Fix file encoding switch and language nesting with CJK.
* src/Buffer.cpp:
- Move the opening and closing CJK and lanaguage tags to ouput_latex.cpp.
* src/Font.cpp:
- switchEncoding call now takes runparams as argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22181 a592a061-630c-0410-9148-cb99ea01b6c8
- use QClipboard::selectionChanged() signal instead of
QClipboard::dataChanged() (bug 4147).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22122 a592a061-630c-0410-9148-cb99ea01b6c8
- fix the buggy language find routine I had to revert two days ago (the current is crash free but leads to wrong imported multi-language files)
- the fix only makes sense with the remaining language stuff (babel-only, the document language stuff was already in trunk but could be overwritten because of the missing babel-only support.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22073 a592a061-630c-0410-9148-cb99ea01b6c8
a real fix is on the list and will hopefully be comitted tomorrow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22043 a592a061-630c-0410-9148-cb99ea01b6c8
* src/tex2lyx/text.cpp:
- fix encoding and indendation.
(Uwe, please do this for trunk as well).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22038 a592a061-630c-0410-9148-cb99ea01b6c8
* src/frontends/qt4/TocModel.cpp: include <climits>
- both needed on Mac OS 10.5.1/Xtools 3.0 (reported by Roger McMurtrie)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21936 a592a061-630c-0410-9148-cb99ea01b6c8
- sanitize cursor after insertion via LFUN_CLIPBOARD_PASTE
or LFUN_FILE_INSERT_PLAINTEXT (bug 4368).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21921 a592a061-630c-0410-9148-cb99ea01b6c8
- backport rev. 20419 and rev. 20531 from trunk (part of bug 4385):
http://www.lyx.org/trac/changeset/20419:
GuiApplication::notify(): don't crash with abort() but exit gracefully
when an exception is caught. try to catch LyX specific exceptions.
http://www.lyx.org/trac/changeset/20531:
Gives the user some information about the crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21914 a592a061-630c-0410-9148-cb99ea01b6c8
- prevent wrong whitespace by trailing '%' on line endings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21743 a592a061-630c-0410-9148-cb99ea01b6c8
src/Messages.cpp: general cleanup.
(cleanTranslation): remove [[context]] strings from a docstring. Use
plain string manupulation instead of regular expressions.
(get): use cleanTranslation also on strings that got translated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21642 a592a061-630c-0410-9148-cb99ea01b6c8
appendix marker if the deleted paragraph was the last one (bug 4352)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21640 a592a061-630c-0410-9148-cb99ea01b6c8