Commit 50dbf2a8 authored by Sven Neumann's avatar Sven Neumann
Browse files

same optimisation in gimp_color_frame_set_invalid()

parent aeff2f27
2005-04-07 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcolorframe.c (gimp_color_frame_set_color): only
* app/widgets/gimpcolorframe.c
(gimp_color_frame_set_color) (gimp_color_frame_set_invalid): only
update the view if there's actually a change.
2005-04-07 Sven Neumann <sven@gimp.org>
......
......@@ -211,6 +211,9 @@ gimp_color_frame_set_invalid (GimpColorFrame *frame)
{
g_return_if_fail (GIMP_IS_COLOR_FRAME (frame));
if (! frame->sample_valid)
return;
frame->sample_valid = FALSE;
gimp_color_frame_update (frame);
......
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