Revert "app (selectiontool): Drop dead code"
This reverts commit c0083d24e6. It was
decided that although this code doesn't have an effect, it needs to be
modified to be fixed.
This commit is contained in:
@ -101,7 +101,7 @@ gimp_selection_tool_modifier_key (GimpTool *tool,
|
||||
key == modify_mask ||
|
||||
key == GDK_MOD1_MASK)
|
||||
{
|
||||
GimpChannelOps button_op;
|
||||
GimpChannelOps button_op = options->operation;
|
||||
|
||||
if (press)
|
||||
{
|
||||
@ -114,6 +114,17 @@ gimp_selection_tool_modifier_key (GimpTool *tool,
|
||||
selection_tool->saved_operation = options->operation;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (! (state & (extend_mask |
|
||||
modify_mask |
|
||||
GDK_MOD1_MASK)))
|
||||
{
|
||||
/* last modifier released */
|
||||
|
||||
button_op = selection_tool->saved_operation;
|
||||
}
|
||||
}
|
||||
|
||||
if (state & GDK_MOD1_MASK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user