]> git.lyx.org Git - features.git/commit
LyXFunc::dispatch(): don't use a buffer pointer set at the beginning of the method...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 26 Sep 2009 18:10:28 +0000 (18:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 26 Sep 2009 18:10:28 +0000 (18:10 +0000)
commitdffe3ee218060035192a8d27b740ed09a6c9b400
tree3546c8740457916f1b970c5e51f10748a1356685
parent16c5138508ef0f388bd3357549791a64c35055f9
LyXFunc::dispatch(): don't use a buffer pointer set at the beginning of the method as this one could change depending of the LFUN. Instead get the proper Buffer in all cases.
The side effect of this patch is that the undo/redo action are properly recorded only for document Buffers. But as this was a mess already with embedded work area. We might try to properly implement undo/redo for embedded work area later.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31471 a592a061-630c-0410-9148-cb99ea01b6c8
src/LyXFunc.cpp