]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / CutAndPaste.C
index e554ac6311098839dcff14ca605c8e4445001370..00831851f08aa00e316f72084e779acf20e64d1d 100644 (file)
@@ -664,10 +664,9 @@ void copySelection(LCursor & cur, docstring const & plaintext)
 
 void saveSelection(LCursor & cur)
 {
-       if (lyxerr.debugging(Debug::ACTION))
-               lyxerr << BOOST_CURRENT_FUNCTION << ": `"
-                      << to_utf8(cur.selectionAsString(true)) << "'."
-                      << endl;
+       LYXERR(Debug::ACTION) << BOOST_CURRENT_FUNCTION << ": `"
+              << to_utf8(cur.selectionAsString(true)) << "'."
+              << endl;
        
        if (cur.selection())
                copySelectionToStack(cur, selectionBuffer);