]> git.lyx.org Git - lyx.git/blobdiff - src/FuncRequest.cpp
InsetBox.cpp: fix bug #8712
[lyx.git] / src / FuncRequest.cpp
index 1d98ca1ea0116fdcd707f5e8eca8a8ba3114b703..c912b3a0ae14094b8a425da79722a19dfd9af27d 100644 (file)
@@ -13,6 +13,7 @@
 #include "FuncRequest.h"
 #include "LyXAction.h"
 
+#include "support/debug.h"
 #include "support/lstrings.h"
 
 #include <climits>
@@ -132,12 +133,19 @@ bool operator==(FuncRequest const & lhs, FuncRequest const & rhs)
 ostream & operator<<(ostream & os, FuncRequest const & cmd)
 {
        return os
-               << " action: " << cmd.action() 
-               << " [" << lyxaction.getActionName(cmd.action()) << "] " 
+               << " action: " << cmd.action()
+               << " [" << lyxaction.getActionName(cmd.action()) << "] "
                << " arg: '" << to_utf8(cmd.argument()) << "'"
                << " x: " << cmd.x()
                << " y: " << cmd.y();
 }
 
 
+LyXErr & operator<<(LyXErr &l, FuncRequest const &fr)
+{
+       ostringstream oss;
+       oss << fr;
+       return l << oss.str();
+}
+
 } // namespace lyx