]> git.lyx.org Git - features.git/commitdiff
re-enable DEPM for setCursorFromCoordinate
authorAndré Pönitz <poenitz@gmx.net>
Fri, 15 Aug 2003 13:20:45 +0000 (13:20 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 15 Aug 2003 13:20:45 +0000 (13:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7556 a592a061-630c-0410-9148-cb99ea01b6c8

src/text2.C

index 74219602a026f552d43cce3cc19c84845c65276e..681a8eaec794103b4efcd70df0fe3eba621176b4 100644 (file)
@@ -1630,11 +1630,10 @@ pos_type LyXText::getColumnNearX(ParagraphList::iterator pit,
 
 void LyXText::setCursorFromCoordinates(int x, int y)
 {
-       //LyXCursor old_cursor = cursor;
+       LyXCursor old_cursor = cursor;
        setCursorFromCoordinates(cursor, x, y);
        setCurrentFont();
-#warning DEPM disabled, otherwise crash when entering new table
-       //deleteEmptyParagraphMechanism(old_cursor);
+       deleteEmptyParagraphMechanism(old_cursor);
 }