Don't remove cell selections after fontchange.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3574 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-02-20 11:43:52 +00:00
parent c5b947b23c
commit 4a5b7a5952
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@
* insettabular.C (draw): clear the parts around a cellinset ALWAYS
and also above (was missing).
(updateLocal): don't remove the cell selection if we have one this
should be done where we really want to remove it.
2002-02-20 José Matos <jamatos@fep.up.pt>

View File

@ -620,9 +620,11 @@ void InsetTabular::updateLocal(BufferView * bv, UpdateCodes what,
}
if (need_update < what) // only set this if it has greater update
need_update = what;
#if 0 // maybe this should not be done!
if ((what == INIT) && hasSelection()) {
clearSelection();
}
#endif
// Dirty Cast! (Lgb)
if (need_update != NONE) {
bv->updateInset(const_cast<InsetTabular *>(this), mark_dirty);