mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
* src/text3.C (doDispatch):
- add missing undo call to LFUN_QUOTE (fixes bug 3439). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17765 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1f7dd754fd
commit
d9b649ea91
@ -1,3 +1,7 @@
|
||||
2007-04-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* text3.C (dispatch): fix undo in LFUN_QUOTE (bug 3439).
|
||||
|
||||
2007-04-05 Richard Heck <rgheck@brown.edu>
|
||||
|
||||
* bufferparams.C (writeLaTeX): output lengths as LaTeX strings
|
||||
|
25
src/text3.C
25
src/text3.C
@ -850,22 +850,25 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
case LFUN_QUOTE: {
|
||||
lyx::cap::replaceSelection(cur);
|
||||
Paragraph & par = cur.paragraph();
|
||||
lyx::pos_type pos = cur.pos();
|
||||
char c;
|
||||
if (pos == 0)
|
||||
c = ' ';
|
||||
else if (cur.prevInset() && cur.prevInset()->isSpace())
|
||||
c = ' ';
|
||||
else
|
||||
c = par.getChar(pos - 1);
|
||||
|
||||
LyXLayout_ptr const & style = par.layout();
|
||||
|
||||
BufferParams const & bufparams = bv->buffer()->params();
|
||||
LyXLayout_ptr const & style = par.layout();
|
||||
if (!style->pass_thru
|
||||
&& par.getFontSettings(bufparams, pos).language()->lang() != "hebrew") {
|
||||
// this avoids a double undo
|
||||
// FIXME: should not be needed, ideally
|
||||
if (!cur.selection())
|
||||
recordUndo(cur);
|
||||
lyx::cap::replaceSelection(cur);
|
||||
pos = cur.pos();
|
||||
char c;
|
||||
if (pos == 0)
|
||||
c = ' ';
|
||||
else if (cur.prevInset() && cur.prevInset()->isSpace())
|
||||
c = ' ';
|
||||
else
|
||||
c = par.getChar(pos - 1);
|
||||
string arg = cmd.argument;
|
||||
if (arg == "single")
|
||||
cur.insert(new InsetQuotes(c,
|
||||
|
@ -45,7 +45,7 @@ What's new
|
||||
* USER INTERFACE:
|
||||
|
||||
- fix bug where moving the last section up in the toc dialog eats the
|
||||
last paragraph (bug 3303).
|
||||
last paragraph (bug 3303)
|
||||
|
||||
- Handle undo correctly when inserting a plain text file (bug 3204).
|
||||
|
||||
@ -61,6 +61,8 @@ What's new
|
||||
|
||||
- Get ProvidesNatbib working correctly, esp. for egs.layout.
|
||||
|
||||
- Fix undo for quotation marks (bug 3439).
|
||||
|
||||
* BUILD/INSTALLATION:
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user