]> git.lyx.org Git - features.git/commit
This addresses a bug in the module code so far committed. The problem is that changin...
authorRichard Heck <rgheck@comcast.net>
Sat, 1 Sep 2007 04:01:13 +0000 (04:01 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 1 Sep 2007 04:01:13 +0000 (04:01 +0000)
commit1588f9d2010f2abc05e18d1b599952c5ffff600d
treedee0fa05b74af0847271bfc9baa9215e6bed4448
parent9ff98fb5bc6660d0829650938981265caef8b1a1
This addresses a bug in the module code so far committed. The problem is that changing the modules used would update the Buffer's TextClass---but it wouldn't update the layouts used by existing paragraphs, the way changing the TextClass does. The solution, obviously, is to do that update. So what I've done is extract that logic from LFUN_TEXTCLASS_APPLY into an updateLayout() routine and then call that from LFUN_BUFFER_PARAMS_APPLY, LFUN_LAYOUT_MODULE_ADD, and LFUN_LAYOUT_MODULES_CLEAR, which are the three places the modules could be changed.

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