]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
Partial fix bug 2092: branches not propagated to child documents
[lyx.git] / src / cursor.C
index 816981e2a333784e462abaa6a21225a3d112e529..ff206f532005623129edbbec1758a2ea7194a9f7 100644 (file)
@@ -782,7 +782,7 @@ bool LCursor::erase()
        }
 
        // 'clever' UI hack: only erase large items if previously slected
-       if (pos() != lastpos() && inset().nargs() > 0) {
+       if (pos() != lastpos() && nextAtom()->nargs() > 0) {
                resetAnchor();
                selection() = true;
                ++pos();
@@ -1126,9 +1126,9 @@ string LCursor::selectionAsString(bool label) const
                return result;
        }
 
-#ifdef WITH_WARNINGS
-#warning and mathed?
-#endif
+       if (inMathed())
+               return lyx::cap::grabSelection(*this);
+
        return string();
 }