mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
handle font changing stuff when we have a cell selection (fix # 217).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3588 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
529603f179
commit
0942c39b77
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
* insettabular.C (localDispatch): force a SELECTION update if we
|
* insettabular.C (localDispatch): force a SELECTION update if we
|
||||||
had a selection and we passed the event down to the inset (fix #213)
|
had a selection and we passed the event down to the inset (fix #213)
|
||||||
|
(localDispatch): handle font changing stuff when we have a cell
|
||||||
|
selection so that the selection is not rewoked. I don't really like
|
||||||
|
this fix, but it's the only way I see to do it right now.
|
||||||
|
|
||||||
2002-02-22 Juergen Vigna <jug@sad.it>
|
2002-02-22 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
|
@ -1186,10 +1186,31 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action,
|
|||||||
}
|
}
|
||||||
// ATTENTION: the function above has to be PASTE and PASTESELECTION!!!
|
// ATTENTION: the function above has to be PASTE and PASTESELECTION!!!
|
||||||
default:
|
default:
|
||||||
|
// handle font changing stuff on selection before we lock the inset
|
||||||
|
// in the default part!
|
||||||
|
result = UNDISPATCHED;
|
||||||
|
if (hs) {
|
||||||
|
switch(action) {
|
||||||
|
case LFUN_LANGUAGE:
|
||||||
|
case LFUN_EMPH:
|
||||||
|
case LFUN_BOLD:
|
||||||
|
case LFUN_NOUN:
|
||||||
|
case LFUN_CODE:
|
||||||
|
case LFUN_SANS:
|
||||||
|
case LFUN_ROMAN:
|
||||||
|
case LFUN_DEFAULT:
|
||||||
|
case LFUN_UNDERLINE:
|
||||||
|
case LFUN_FONT_SIZE:
|
||||||
|
if (bv->Dispatch(action, arg))
|
||||||
|
result = DISPATCHED;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
// we try to activate the actual inset and put this event down to
|
// we try to activate the actual inset and put this event down to
|
||||||
// the insets dispatch function.
|
// the insets dispatch function.
|
||||||
result = UNDISPATCHED;
|
if ((result == DISPATCHED) || the_locking_inset)
|
||||||
if (the_locking_inset)
|
|
||||||
break;
|
break;
|
||||||
nodraw(true);
|
nodraw(true);
|
||||||
if (activateCellInset(bv)) {
|
if (activateCellInset(bv)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user