]> git.lyx.org Git - features.git/commitdiff
Remove some showInsetCursor calls we don't really need (fix #106).
authorJürgen Vigna <jug@sad.it>
Mon, 18 Mar 2002 14:53:21 +0000 (14:53 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 18 Mar 2002 14:53:21 +0000 (14:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3764 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 9d4421ac118804a3798709f3e3962052713c568b..1fb68b98e660d625aae097499de857b11cdef813 100644 (file)
@@ -1,3 +1,12 @@
+2002-03-18  Juergen Vigna  <jug@sad.it>
+
+       * insettabular.C (unlockInsetInInset): removed unneeded showCursor
+       calls.
+       (localDispatch): ditto
+
+       * insettext.C (edit): removed unneeded showCursor calls.
+       (localDispatch): ditto.
+
 2002-03-13  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * insetgraphics.h: remove display() method.
index 0f57c91d360cfeef94a075c963e3e5e2037f72fd..8dcea73ed23b0897e6781eb77dbb5d65fb810229 100644 (file)
@@ -694,7 +694,7 @@ bool InsetTabular::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                        scroll(bv, 0.0F);
 #endif
                updateLocal(bv, CELL, false);
-               showInsetCursor(bv, false);
+//             showInsetCursor(bv, false);
                return true;
        }
        if (the_locking_inset->unlockInsetInInset(bv, inset, lr)) {
@@ -1276,7 +1276,7 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action,
        }
        if (result < FINISHED) {
                if (!the_locking_inset) {
-                       showInsetCursor(bv);
+//                     showInsetCursor(bv);
                }
        } else
                bv->unlockInset(this);
index 5c16cd5974bbc9dff023355154213c2f54fa42ea..51430207881eebae391c3f7174b7b8fcdc3fb671 100644 (file)
@@ -676,7 +676,7 @@ void InsetText::edit(BufferView * bv, int x, int y, unsigned int button)
                font.setLanguage(bv->getParentLanguage(this));
                setFont(bv, font, false);
        }
-       showInsetCursor(bv);
+//     showInsetCursor(bv);
        if (clear)
                lt = 0;
        
@@ -725,7 +725,7 @@ void InsetText::edit(BufferView * bv, bool front)
                font.setLanguage(bv->getParentLanguage(this));
                setFont(bv, font, false);
        }
-       showInsetCursor(bv);
+//     showInsetCursor(bv);
        if (clear)
                lt = 0;
        int code = CURSOR;
@@ -1440,9 +1440,7 @@ InsetText::localDispatch(BufferView * bv,
                setFont(bv, font, false);
        }
 
-       if (result < FINISHED) {
-               showInsetCursor(bv);
-       } else
+       if (result >= FINISHED)
                bv->unlockInset(this);
        return result;
 }