]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetnote.C
index adc7c99629efcc71c475ff027d1a6b216efc7167..92a79b09f7d93cdd122b9b8010ac4daa732e5626 100644 (file)
@@ -132,8 +132,7 @@ dispatch_result InsetNote::localDispatch(FuncRequest const & cmd)
                InsetNoteMailer("note", *this).updateDialog(bv);
                return DISPATCHED;
        case LFUN_MOUSE_RELEASE:
-               if (cmd.button() == mouse_button::button3 && cmd.x < button_length
-                                       && cmd.y >= button_top_y && cmd.y <= button_bottom_y) {
+               if (cmd.button() == mouse_button::button3 && hitButton(cmd)) {
                        InsetNoteMailer("note", *this).showDialog(bv);
                        return DISPATCHED;
                }