]> git.lyx.org Git - features.git/commitdiff
Don't remove cell selections after fontchange.
authorJürgen Vigna <jug@sad.it>
Wed, 20 Feb 2002 11:43:52 +0000 (11:43 +0000)
committerJürgen Vigna <jug@sad.it>
Wed, 20 Feb 2002 11:43:52 +0000 (11:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3574 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettabular.C

index 33f741aab49a25c3c03621cea058d597d6b98a15..37b3db305830b47ae6dab3dcb3db9341ae341bd5 100644 (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>
 
index 85cbca17e06e38f747b700c94ec9674736c0706f..d21030ee98d11ebc7413c5f57dcac73490420171 100644 (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);