Commit abc66990 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

add missing support for anchoring a selection (bugfix ported from stable

2002-03-14  Manish Singh  <yosh@gimp.org>

        * app/tools/gimpfuzzyselecttool.c: add missing support for
        anchoring a selection (bugfix ported from stable branch)
parent 066f3ad4
2002-03-14 Manish Singh <yosh@gimp.org>
* app/tools/gimpfuzzyselecttool.c: add missing support for
anchoring a selection (bugfix ported from stable branch)
2002-03-14 Michael Natterer <mitch@gimp.org>
Re-enabled the display filters. They work exactly the same way
......
......@@ -37,6 +37,7 @@
#include "core/gimpimage-contiguous-region.h"
#include "core/gimpimage-mask.h"
#include "core/gimpimage-mask-select.h"
#include "core/gimplayer-floating-sel.h"
#include "core/gimptoolinfo.h"
#include "display/gimpdisplay.h"
......@@ -256,6 +257,19 @@ gimp_fuzzy_select_tool_button_release (GimpTool *tool,
{
gint off_x, off_y;
if (GIMP_SELECTION_TOOL (tool)->op == SELECTION_ANCHOR)
{
/* If there is a floating selection, anchor it */
if (gimp_image_floating_sel (gdisp->gimage))
floating_sel_anchor (gimp_image_floating_sel (gdisp->gimage));
/* Otherwise, clear the selection mask */
else
gimp_image_mask_clear (gdisp->gimage);
gdisplays_flush ();
return;
}
if (sel_options->sample_merged)
{
off_x = 0;
......
......@@ -37,6 +37,7 @@
#include "core/gimpimage-contiguous-region.h"
#include "core/gimpimage-mask.h"
#include "core/gimpimage-mask-select.h"
#include "core/gimplayer-floating-sel.h"
#include "core/gimptoolinfo.h"
#include "display/gimpdisplay.h"
......@@ -256,6 +257,19 @@ gimp_fuzzy_select_tool_button_release (GimpTool *tool,
{
gint off_x, off_y;
if (GIMP_SELECTION_TOOL (tool)->op == SELECTION_ANCHOR)
{
/* If there is a floating selection, anchor it */
if (gimp_image_floating_sel (gdisp->gimage))
floating_sel_anchor (gimp_image_floating_sel (gdisp->gimage));
/* Otherwise, clear the selection mask */
else
gimp_image_mask_clear (gdisp->gimage);
gdisplays_flush ();
return;
}
if (sel_options->sample_merged)
{
off_x = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment