]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
Fix bug 2029 (RtL space width)
[lyx.git] / src / text3.C
index e43252595113b7d861dfc7b5ea9af006e54b1ffd..20940bf7ef1487cf8e044dc71bd43c37a4f5aab8 100644 (file)
@@ -919,6 +919,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                cur.clearSelection();
                string const clip = bv->getClipboard();
                if (!clip.empty()) {
+                       recordUndo(cur);
                        if (cmd.argument == "paragraph")
                                insertStringAsParagraphs(cur, clip);
                        else
@@ -1519,8 +1520,10 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               lyxerr << BOOST_CURRENT_FUNCTION
-                      << " Not DISPATCHED by LyXText" << endl;
+               lyxerr[Debug::ACTION] 
+                       << BOOST_CURRENT_FUNCTION
+                       << ": Command " << cmd 
+                       << " not DISPATCHED by LyXText" << endl;
                cur.undispatched();
                break;
        }