]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
EmbeddedObjects.lyx: add hint how to force a rotation direction for rotated floats
[lyx.git] / src / CutAndPaste.cpp
index 85c6b122f7ec214b6b4cbd2c8154ae41260f2b9f..c8438b02372126aca61a781bc08bca919980584a 100644 (file)
@@ -607,6 +607,10 @@ void copySelectionToStack(Cursor & cur, CutStack & cutstack)
        if (!cur.selection())
                return;
 
+       // copySelection can not yet handle the case of cross idx selection
+       if (cur.selBegin().idx() != cur.selEnd().idx())
+               return;
+
        if (cur.inTexted()) {
                Text * text = cur.text();
                BOOST_ASSERT(text);