mirror of https://github.com/GNOME/gimp.git
plug-ins: imagemap, don't run execute for sash when redoing
It adds event handlers expecting the mouse button to be down, but it isn't, so everything broke.
This commit is contained in:
parent
8621807a9f
commit
cc3f1e8a24
|
@ -31,12 +31,13 @@
|
|||
|
||||
static void move_sash_command_destruct(Command_t *command);
|
||||
static CmdExecuteValue_t move_sash_command_execute(Command_t *command);
|
||||
static void move_sash_command_redo(Command_t *command);
|
||||
|
||||
static CommandClass_t move_sash_command_class = {
|
||||
move_sash_command_destruct,
|
||||
move_sash_command_execute,
|
||||
NULL /*undo*/,
|
||||
NULL /*redo*/
|
||||
move_sash_command_redo
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
@ -142,3 +143,8 @@ move_sash_command_execute(Command_t *parent)
|
|||
|
||||
return CMD_APPEND;
|
||||
}
|
||||
|
||||
static void move_sash_command_redo(Command_t *command)
|
||||
{
|
||||
/* do nothing, but avoid running execute again which will break event handling */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue