]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.cpp
Fix Bug 3947: BibTeX allows parentheses in the key (even if the whole entry is delimi...
[lyx.git] / src / insets / InsetCommand.cpp
index 3c1fce2a8c86d841ca34f231db4c237a986a010b..ea52598dc1278919749d9626f877082622899773 100644 (file)
@@ -86,7 +86,7 @@ void InsetCommand::setParams(InsetCommandParams const & p)
 
 
 int InsetCommand::latex(Buffer const &, odocstream & os,
-                        OutputParams const &) const
+                       OutputParams const &) const
 {
        os << getCommand();
        return 0;
@@ -94,7 +94,7 @@ int InsetCommand::latex(Buffer const &, odocstream & os,
 
 
 int InsetCommand::plaintext(Buffer const & buf, odocstream & os,
-                            OutputParams const &) const
+                           OutputParams const &) const
 {
        docstring const str = "[" + buf.B_("LaTeX Command: ") + from_utf8(getCmdName()) + "]";
        os << str;
@@ -103,7 +103,7 @@ int InsetCommand::plaintext(Buffer const & buf, odocstream & os,
 
 
 int InsetCommand::docbook(Buffer const &, odocstream &,
-                          OutputParams const &) const
+                         OutputParams const &) const
 {
        return 0;
 }
@@ -133,7 +133,7 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_MOUSE_RELEASE: {
-               if (!mailer_name_.empty())
+               if (!mailer_name_.empty() && !cur.selection())
                        InsetCommandMailer(mailer_name_, *this).showDialog(&cur.bv());
                break;
        }