]> git.lyx.org Git - lyx.git/blobdiff - src/FuncRequest.cpp
Avoid a string copy and a small tweak.
[lyx.git] / src / FuncRequest.cpp
index 691456a69a6425eb26ec250b8c2d0ae777baa764..3eb0990a01f7d15e787bf1c6a0247c3914ef3271 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #include "FuncRequest.h"
+#include "LyXAction.h"
 
 #include <iostream>
 #include <sstream>
@@ -107,7 +108,8 @@ bool operator==(FuncRequest const & lhs, FuncRequest const & rhs)
 ostream & operator<<(ostream & os, FuncRequest const & cmd)
 {
        return os
-               << " action: " << cmd.action
+               << " action: " << cmd.action 
+               << " [" << lyxaction.getActionName(cmd.action) << "] " 
                << " arg: '" << to_utf8(cmd.argument()) << "'"
                << " x: " << cmd.x
                << " y: " << cmd.y;