X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFuncRequest.cpp;h=c912b3a0ae14094b8a425da79722a19dfd9af27d;hb=02e59530b15d223c0978ecacfb7379f7bec986f4;hp=1d98ca1ea0116fdcd707f5e8eca8a8ba3114b703;hpb=3753804463d28b16f947c05dd2b20a6a9e66d41f;p=lyx.git diff --git a/src/FuncRequest.cpp b/src/FuncRequest.cpp index 1d98ca1ea0..c912b3a0ae 100644 --- a/src/FuncRequest.cpp +++ b/src/FuncRequest.cpp @@ -13,6 +13,7 @@ #include "FuncRequest.h" #include "LyXAction.h" +#include "support/debug.h" #include "support/lstrings.h" #include @@ -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