Commit Graph

7577 Commits

Author SHA1 Message Date
Georg Baum
2a64df96f9 Fix bug 2404
* src/lyx_cb.C
	(newFile): Only set the new buffer if it is valid

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::loadLyXFile): Test whether newFile succeeded

	* src/lyxfunc.C
	(LyXFunc::menuNew): Only set the new buffer if it is valid
	(LyXFunc::open): ditto

	* src/importer.C
	(Importer::Import): ditto

	* src/lyx_main.C
	(LyX::exec2): Only use the new buffer if newFile succeeded

	* src/buffer_funcs.C
	(newFile): discard the buffer and return 0 if the template is invalid

	* src/BufferView_pimpl.[Ch]
	(BufferView::Pimpl::newFile): remove, not used anymore

	* src/BufferView.C
	(BufferView::newFile): remove, not used anymore


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14623 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 12:31:19 +00:00
Jean-Marc Lasgouttes
98097da2c9 * src/lyx_main.C (init): Do automatic reconfiguration even when
running in batch mode (bug 2741).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-11 22:10:23 +00:00
Jean-Marc Lasgouttes
84e22d209e Fix bug 2756:
* src/BufferView_pimpl.C (dispatch/LFUN_NEXT_INSET_TOGGLE): moved from
	LyXText.

	* src/text3.C (dispatch/LFUN_NEXT_INSET_TOGGLE): moved to
	BufferView::Pimpl, since this should work in mathed too.

	* src/mathed/math_nestinset.C (doDispatch/LFUN_INSET_TOGGLE): do not try to
	do the work which belongs to LFUN_NEXT_INSET_TOGGLE (bug 2756).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14616 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-11 21:40:24 +00:00
Georg Baum
8d7df59e74 Fix bug 2481 and read in of \over (related to bug 2481)
* src/mathed/math_fracinset.[Ch]
	(MathFracInset::extraBraces): new, return true for \atop
	* src/mathed/math_binominset.[Ch]
	(MathBinomInset::extraBraces): new, return true for \choose

        * src/mathed/math_factory.C
        (createMathInset): Create a MathFracInset of kind OVER for \over

        * src/mathed/math_fracinset.C
        (MathFracInset::draw): handle kind OVER
        (MathFracInset::drawT): ditto
        (MathFracInset::write): ditto
        (MathFracInset::name): ditto
        (MathFracInset::extraBraces): ditto

        * src/mathed/math_fracinset.h
        (Kind): New kind OVER


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14615 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-11 13:10:37 +00:00
Jean-Marc Lasgouttes
64dc4919f9 * buffer.C (save): fix logic error in fix to but 2740
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14607 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-10 13:25:27 +00:00
Jean-Marc Lasgouttes
40ee2fb4ac yet another annoying debug message bites the dust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14585 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 22:16:58 +00:00
Jean-Marc Lasgouttes
a3803ebf50 * src/mathed/math_scriptinset.C
(MathScriptInset::hasLimits): remove annoying debug message

	* src/mathed/math_nestinset.C
	(MathNestInset::script): ditto

	* src/CutAndPaste.C
	(copySelection): ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14584 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 22:13:36 +00:00
Jean-Marc Lasgouttes
86a656c8e3 small cleanup after the no-sh patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14580 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 21:17:08 +00:00
Jürgen Spitzmüller
365a2daf53 Prevent boost::filesystem assert (w/ dataloss) when the backup dir was invalid or not writeable. War the user instead and skip backup (bug 2740)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14576 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 14:39:08 +00:00
Jean-Marc Lasgouttes
a06167692c forgot that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14574 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 13:57:20 +00:00
Jean-Marc Lasgouttes
eb42722649 Fix bug 2616 (backport of changeset 14496 from G. Baum)
* src/LaTeX.C
        (LaTeX::deplog): Add the toc file to the dependencies if a line
        \tf@toc=\write#
        is present in the log file, since miktex does not write the line
        \openout# = `sample.toc'.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14573 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 13:56:21 +00:00
Jean-Marc Lasgouttes
41e2e9cea1 Partial fix for bug 2420 (backport of changeset 14495 from G. Baum)
* src/tex2lyx/preamble.C
	(parse_preamble): ignore the definition of the lyxgreyedout
	environment



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14569 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 13:12:07 +00:00
Jean-Marc Lasgouttes
40ea8765be Give feedback if TeXFiles.py fails (from Georg Baum)
* src/frontends/controllers/tex_helpers.h: doxyfy comment

	* src/frontends/controllers/tex_helpers.C
	(rescanTexStyles): Pop up a message box when TeXFiles.py fails



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14566 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 10:57:09 +00:00
Jean-Marc Lasgouttes
11c8752fc9 Fix bug 2524 (From Georg Baum)
* src/support/tests/test_convert: Change shell from bash to sh
	* src/support/tests/test_lstrings: ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14563 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 10:29:43 +00:00
Jean-Marc Lasgouttes
5c985f39ab Fix bug 2667 (from Georg Baum)
* src/tex2lyx/tex2lyx.C
	(tex2lyx): output an empty paragraph if the document is empty

	* src/tex2lyx/context.C
	(Context::check_layout): set empty to false

	* src/tex2lyx/context.[Ch]
	(empty): new flag, tells whether all contexts are empty


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14555 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-07 13:47:28 +00:00
Bo Peng
26d0812c95 no-Shell patch one: convertDefault.sh -> convertDefault.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14462 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 15:42:50 +00:00
Jean-Marc Lasgouttes
29eeae433c * src/frontends/qt2/QContentPane.C (q_key_state): allow both Alt and Meta as alt
modifier. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14445 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-13 09:25:32 +00:00
Jean-Marc Lasgouttes
c0a2e555a3 last bits for 1.4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14440 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-13 08:10:53 +00:00
Jean-Marc Lasgouttes
bea368b6ac * src/text3.C (dispatch): merge the SEL and non-SEL cursor movement
LFUNs; use LCursor::selHandle consistently (fixes bugs 2119 and
	2259, and also a crash related to with dEPM)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14437 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-13 07:47:33 +00:00
Jean-Marc Lasgouttes
b5e4ca7a8a Wide() tweaks from Martin Vermeer.
* src/insets/insettabular.C (metrics): fix width of insets inside tabular
	cells. 

	* src/insets/insetcollapsable.C (metrics): make sure that the openinlined_
	decision does not depend on mi.base.texwidth.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14429 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-12 14:16:10 +00:00
Jean-Marc Lasgouttes
a5e0ce7d03 * src/rowpainter.h (rightMargin): reduce to 10 pixels, like the left
margin. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14358 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 13:42:03 +00:00
Jürgen Spitzmüller
0bf849e21c * src/insets/insettabular.h: return true for allowSpellcheck (bug 2675)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14355 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 10:03:48 +00:00
Jean-Marc Lasgouttes
61bb33f91c fix hyphens in man pages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14350 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 14:26:07 +00:00
Jean-Marc Lasgouttes
e85e582e83 New TeXFiles.py script from Bo Peng. This avoids a crash with the bash
version in windows.

	* lib/Makefile.am (dist_scripts_DATA): update.
	* lib/scripts/TeXFiles.sh: removed.
	* lib/scripts/TeXFiles.py: new script.

	* src/frontends/controllers/tex_helpers.C (rescanTexStyles):
	invoke the new TeXFiles.py python script.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 12:59:11 +00:00
Jürgen Spitzmüller
f66fd91896 * ui/QPrefUIModule.ui: fix layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14268 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 09:49:08 +00:00
Jean-Marc Lasgouttes
95325f9c89 initialize correctly multiparsel_cache_ (may fix bug 2630)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14263 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-29 14:44:50 +00:00
Martin Vermeer
e41b09f2d4 * insettabular.C (drawSelection): initialize tabular background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14262 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-29 07:17:54 +00:00
Jean-Marc Lasgouttes
6e8167a2d4 remove annoying debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14259 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 14:21:38 +00:00
Jean-Marc Lasgouttes
a63942bee5 Patch from Martin Vermeer for bug 2218.
* src/frontends/xforms/FormSpellchecker.C (update): 
	* src/frontends/qt2/QSpellchecker.C (update_contents): fix bug 
	2218: Spellchecker doesn't pop up dialogue window for the first 
	misspelled word.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14247 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 12:20:59 +00:00
Jean-Marc Lasgouttes
daa8296b7f The big cygwin_path rewrite patch from Enrico Forestieri.
Renaming:
	cygwin_path_fix		->	windows_style_tex_paths
	cygwin_path_fix_needed	->	tex_expects_windows_paths
	check_cygwin_path	->	check_windows_style_tex_paths
	use_cygwin_paths	->	use_windows_paths
	RC_CYGWIN_PATH_FIX	->	RC_TEX_EXPECTS_WINDOWS_PATHS

	* src/frontends/qt4/ui/QPrefCygwinPathUi.ui
	* src/frontends/qt3/ui/QPrefCygwinPathModule.ui
	  Updated checkbutton label and description

	* src/frontends/qt4/QPrefsDialog.C
	  (PrefCygwinPath): cygwin_path_fix -> windows_style_tex_paths
	  (QPrefsDialog): Enable checkbutton for native WIN32 builds

	* src/frontends/xforms/forms/form_preferences.fd
	  Updated label and name of checkbutton

	* src/frontends/xforms/FormPreferences.C
	  (apply): cygwin_path_fix -> windows_style_tex_paths
	           check_cygwin_path -> check_windows_style_tex_paths
	  (build): Enable checkbutton for native WIN32 builds
	  (update): Ditto
	  (feedback): Updated description

	* src/frontends/qt3/QPrefs.C
	* src/frontends/qt3/QPrefsDialog.C
	* src/frontends/qt3/QPrefsDialog.h
	  Renaming as above, enabled checkbutton for native WIN32 builds

	* src/support/os_unix.C
	* src/support/os.h
	* src/support/os_win32.C
	  Renaming cygwin_path_fix -> windows_style_tex_paths
	* src/support/os_cygwin.C
	  Ditto
	  (external_path, external_path_list): always return windows
	  style paths, not depending on the checkbutton status

	* src/lyxrc.C
	* src/lyxrc.h
	* src/lyxfunc.C
	* src/lyx_main.C
	  Renaming

	* lib/configure.py
	  Renaming, more meaningful diagnostics




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14243 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:54:14 +00:00
Georg Baum
2019a3e590 Fix limit display of intop and ointop
* src/mathed/math_scriptinset.C
	(MathScriptInset::hasLimits): handle \intop and \ointop

	* lib/symbols: add intop and ointop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14230 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 16:38:11 +00:00
Jürgen Spitzmüller
3c05ffd48e * src/insets/insettabular.C (doDispatch): set cursor properly on mouse
(button 3) press. Fixes crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14226 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 15:08:08 +00:00
Georg Baum
332a0fef95 * src/mathed/math_gridinset.C
(doDispatch): fix off by one error when checking cur.idx() (bug 2655)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14187 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-23 15:32:54 +00:00
Martin Vermeer
ed18992977 Redefine the speed-up "Wide" patch to draw proper boxes
in available space instead of line pairs.

	* rowpainter.C
	(paintPar): change background rectangle

	* insets/insettext.C
	(InsetText::draw):
	(InsetText::drawSelection): simplify rectangle drawing

	* insets/insettext.h: dump Tall()

	* insets/insetcollapsable.C
	(InsetCollapsable::metrics): subtract button from available
	space in case of inlined inset



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14168 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-21 12:39:09 +00:00
Jean-Marc Lasgouttes
d6e40e19ad use our own font width cache with Qt/Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14127 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-16 14:32:42 +00:00
Jean-Marc Lasgouttes
54f6bcd13f tweaks to zlib support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14099 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 13:57:46 +00:00
Georg Baum
8fa0d2ccb3 Fix crash on exit (bug 2549) by correct usage of QApplication
* src/lyx_cb.C
        (quitLyX): lyx_gui::exit takes now an argument

        * src/frontends/{gtk,xforms}/lyx_gui.C
        (lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2
        (void lyx_gui::exit): add exit status argument

        * src/frontends/qt2/lyx_gui.C
        (cleanup): new function for pointer cleanup
        (lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2,
        turn static variables into automatic variables
        (void lyx_gui::exit): add exit status argument
        (start): Use cleanup()
        (exit): ditto

        * src/frontends/lyx_gui.h
        (parse_init): remove
        (exec): new
        (exit): Take exist status argument

        * src/lyx_main.[Ch]
        (LyX::priv_exec): split into LyX::priv_exec and LyX::exec2

        * src/lyx_main.C
        (lyx_exit): New, choose the right exit function
        (showFileError): call lyx_exit
        (LyX::queryUserLyXDir): ditto
        (LyX::init): ditto
        (LyX::priv_exec): ditto
        (LyX::priv_exec): Replace want_gui by lyx_gui::use_gui
        (LyX::priv_exec): replace lyx_gui::parse_init by lyx_gui::exec and
        exec2
        (LyX::init): Replace gui argument by lyx_gui::use_gui



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14059 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-09 13:07:04 +00:00
Martin Vermeer
9998736781 * insetbox.h: add noFontChange() == true to prevent LaTeX error for
multi-paragraph box insets



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14057 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-09 12:12:50 +00:00
Jean-Marc Lasgouttes
27b299205d * src/bufferparams.h: make author_map use an unsigned index, to avoid
a warning.

	* src/text.C (readParToken): handle \change_inserted and
	\change_deleted tokens with wrong author index (bug 2614).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14029 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-07 17:06:00 +00:00
Jean-Marc Lasgouttes
86a77679c8 * src/intl.C (InitKeyMapper): reset kbmap file names if the files
could not be read (bug 2604).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-31 10:32:26 +00:00
Jürgen Spitzmüller
b75165353e fix bug 2623:
* lib/layouts/memoir.layout:
	add ProvidesMakeindex

* src/LaTeX.C (run):
	rerun latex if idx file is empty (needed by memoir)
	fix typo in comment
* src/LaTeXFeatures.C (getPackages):
	whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13963 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 17:28:02 +00:00
Jean-Marc Lasgouttes
48f0a4b681 * src/support/os_unix.C (canAutoOpenFile, autoOpenFile): add support for Mac
OS X.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13960 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 16:41:31 +00:00
Georg Baum
8f02fb39d0 Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
"Don't view/edit this format", and 'auto' means "Use the default viewer/editor".
        * src/format.C
        (fixCommand): Change semantics: "none" is equal to "", and "auto"
        is removed if canAutoOpenFile returns false.

        * src/frontends/xforms/FormPreferences.C
        (FormPreferences::SpellOptions::apply): regognize "" as "none"

        * src/lyxrc.C
        (LyXRC::getDescription): "none" -> ""

        * lib/doc/Customization.lyx: Document the autoopen feature

        * lib/configure.py
        (checkProg): add optional not_found argument, defaulting to 'none'
        (checkViewer): new, equivalent to checkProg with not_found = 'auto'
        (checkFormatEntries): call checkViewer instead of checkProg for
        viewers and editors


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13933 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-26 08:33:01 +00:00
Martin Vermeer
6f5a5fe88b * paragraph_pimpl.C
(Paragraph::Pimpl::erase): Replace fix r13885 by better fix



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13928 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 11:47:33 +00:00
Georg Baum
07db8e3139 * src/insets/insetgraphics.C
(InsetGraphics::prepareFile): Fix typo from last patch


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13925 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 07:38:32 +00:00
Jürgen Spitzmüller
7941f54737 * BufferView_pimpl.C (getStatus):
Disable saving of bookmarks in mathed for it is not yet supported
  	and makes LyX crash (bug 2597)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13910 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-22 14:26:28 +00:00
Jürgen Spitzmüller
ffcd987cab * insettabular.C (doDispatch):
set cursor after mouse (button 3) press
	(re-fix bug 2526).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13908 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-22 14:18:31 +00:00
Jürgen Spitzmüller
e64a71d844 * insettabular.C (doDispatch):
do not mark the cursor undispatched after mouse (button 3) press
	(prevents the cursor from leaving the tabular when opening the 	
	dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13907 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-22 13:13:06 +00:00
Jürgen Spitzmüller
31f71bf364 * insettabular.C (doDispatch):
fix crash due to invalidated
	cursor after insertAciiString (bug 2603).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13904 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-22 10:18:02 +00:00
Georg Baum
4c0a7b6a0f Fix crash that occurs if the cursor is in a table cell when the document class
is changed
        * src/cursor.C: remove unused 'using std::swap'
        * src/BufferView.C: ditto

        * src/CutAndPaste.[Ch]
        (switchBetweenClasses): replace ParagraphList argument with InsetText
        argument. This avoids an unnecessary swap in lyxfunc.C.

        * src/CutAndPaste.C
        (pasteSelectionHelper): Adjust to the changes above
        (pasteSelectionHelper): Use ParagraphList::swap instead of std::swap.
        This fixes the crash.

        * src/lyxfunc.C
        (LyXFunc::dispatch): Adjust to switchBetweenClasses changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13903 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-22 10:12:09 +00:00