]> git.lyx.org Git - features.git/commitdiff
revert faulty changes in last revision...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 21 Oct 2006 09:50:33 +0000 (09:50 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 21 Oct 2006 09:50:33 +0000 (09:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15439 a592a061-630c-0410-9148-cb99ea01b6c8

src/text2.C

index 239cb1e4059bd38a52e75e55d9f29bc7f4a97cd8..d88edd4af99febe4839f81e82f9fadcf58cb8f55 100644 (file)
@@ -980,33 +980,10 @@ InsetBase * LyXText::editXY(LCursor & cur, int x, int y)
                return 0;
        }
 
-       int i=0;
-       InsetBase * inset2 = pars_[pit].getInset(pos - 1);
-       InsetBase * inset3 = pars_[pit].getInset(pos);
-       if (inset != pars_[pit].getInset(pos - 1))
-       {
-               i++;            
-               std::cout << "pit " << pit 
-               << "  pos -1 " << pos - 1
-               << "\ninset " << inset
-               << "\ninset2 " << inset2
-               << endl;
-       }
-
-       if (inset != pars_[pit].getInset(pos))
-       {               
-               i++;
-               std::cout << "pit " << pit 
-               << "  pos " << pos
-               << "\ninset " << inset
-               << "\ninset3 " << inset3
-               << endl;
-       }
-       if (i == 2)
-               std::cout << endl;
-
        // This should be just before or just behind the
        // cursor position set above.
+        InsetBase * inset2 = pars_[pit].getInset(pos - 1);
+        InsetBase * inset3 = pars_[pit].getInset(pos);
         
        BOOST_ASSERT((pos != 0 && inset == inset2)
                     || inset == inset3);