Le 15 avr. 10 à 19:15, Vincent van Ravesteijn - TNW a écrit :
Author: lasgouttes
Date: Fri Nov 13 15:32:51 2009
New Revision: 31969
URL: http://www.lyx.org/trac/changeset/31969
+ // Is this a function that acts on inset at point?
+ if (lyxaction.funcHasFlag(cmd.action, LyXAction::AtPoint)
+ && nextInset()) {
+ result().dispatched(true);
+ result().update(Update::FitCursor | Update::Force);
This is not correct. Result() returns a copy of the disp_ object and
so
these two lines have no effect.
Ouch.
I made result() return a const & in order not to have anyone trying to
do this again.
Why not return a DispatchResult& ? I think that was the intent anyway.
JMarc