Dekel Tsur <[EMAIL PROTECTED]> writes:
| Index: src/BufferView2.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView2.C,v
| retrieving revision 1.1
| diff -u -p -r1.1 BufferView2.C
| --- src/BufferView2.C 2000/02/04 09:38:29 1.1
| +++ src/BufferView2.C 2000/02/04 15:31:46
| @@ -612,8 +612,13 @@ void BufferView::insertCorrectQuote()
| c = text->cursor.par->GetChar(text->cursor.pos - 1);
| else
| c = ' ';
| + LyXDirection direction = text->real_current_font.getFontDirection();
|
| - insertInset(new InsetQuotes(c, buffer()->params));
| + insertInset(new InsetQuotes(c,
| + (direction == LYX_DIR_LEFT_TO_RIGHT)
| + ? buffer()->params.quotes_language
| + : InsetQuotes::SwedishQ,
| + buffer()->params.quotes_times));
What can't all this be done in InsetQoutes, instead of this horrible
call? Ok, at least use some temporary variables for this.
Lgb