]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
Two fixes involving RtL text drawing
[lyx.git] / src / cursor.C
index 9af38d2fe61ea7d4d4ebe549a6d5ae3e349f7dcf..816981e2a333784e462abaa6a21225a3d112e529 100644 (file)
@@ -376,7 +376,8 @@ void LCursor::getPos(int & x, int & y) const
 
 void LCursor::paste(string const & data)
 {
-       dispatch(FuncRequest(LFUN_PASTE, data));
+       if (!data.empty())
+               dispatch(FuncRequest(LFUN_PASTE, data));
 }
 
 
@@ -467,9 +468,6 @@ void LCursor::setSelection(DocIterator const & where, size_t n)
        selection() = true;
        anchor_ = where;
        pos() += n;
-       // Open all collapsed insets
-       for (int i = depth() - 1; i >= 0; --i)
-               operator[](i).inset().setStatus(*this, InsetBase::Open);
 }