added an else that we lost somehow.

2006-06-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: added an else that we lost somehow.
This commit is contained in:
Sven Neumann 2006-06-29 08:23:08 +00:00 committed by Sven Neumann
parent 59056d8d9a
commit d43df96695
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-06-29 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c: added an else that we lost somehow.
2006-06-28 Sven Neumann <sven@gimp.org>
* app/gui/splash.c: improved calculation of text color based on

View File

@ -308,7 +308,7 @@ run (const gchar *name,
shootvals.x2 = param[5].data.d_int32;
shootvals.y2 = param[6].data.d_int32;
}
else
{
status = GIMP_PDB_CALLING_ERROR;
}
@ -458,13 +458,12 @@ select_window_x11 (GdkScreen *screen)
if (x_win == None)
{
x_win = x_event.xbutton.subwindow;
if (x_win == None)
x_win = x_root;
#ifdef HAVE_X11_XMU_WINUTIL_H
else if (! shootvals.decorate)
{
x_win = XmuClientWindow (x_dpy, x_win);
}
x_win = XmuClientWindow (x_dpy, x_win);
#endif
shootvals.x2 = shootvals.x1 = x_event.xbutton.x_root;
@ -476,6 +475,7 @@ select_window_x11 (GdkScreen *screen)
case ButtonRelease:
if (buttons > 0)
buttons--;
if (! buttons && shootvals.shoot_type == SHOOT_REGION)
{
x = MIN (shootvals.x1, shootvals.x2);