]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetref.C
index eab61a905d3541178157cb7676fb33489886e4b9..8edc5ec140bdc678a43a80b9a5753f553d2d59cd 100644 (file)
@@ -21,6 +21,8 @@
 #include "BufferView.h"
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using std::ostream;
 
 InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
@@ -48,7 +50,7 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
                if (cmd.button() == mouse_button::button3)
                        cmd.view()->owner()->
                                dispatch(FuncRequest(LFUN_REF_GOTO, getContents()));
-               if (cmd.button() == mouse_button::button1)
+               else
                        InsetCommandMailer("ref", *this).showDialog(cmd.view());
                return DISPATCHED;