app/pdb/display_cmds.c removed unnecessary check for image being nonempty.

2001-07-14  Sven Neumann  <sven@gimp.org>

	* app/pdb/display_cmds.c
	* tools/pdbgen/pdb/display.pdb (display_new_invoker): removed
	unnecessary check for image being nonempty.
This commit is contained in:
Sven Neumann 2001-07-14 17:56:02 +00:00 committed by Sven Neumann
parent 85c36fcd7c
commit 1be0c824a3
3 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,13 @@
2001-07-14 Sven Neumann <sven@gimp.org>
* app/pdb/display_cmds.c
* tools/pdbgen/pdb/display.pdb (display_new_invoker): removed
unnecessary check for image being nonempty.
2001-07-14 Fatih Demir <kabalak@gtranslator.org>
* tips/Makefile.am|makefile.mingw: Added gimp_tips.tr.txt to the
targets and re-ordered the tips files listings.
targets and re-ordered the tips files listings.
* tips/gimp_tips.tr.txt: Added Turkish tips file from Alper Ersoy.

View File

@ -59,10 +59,7 @@ display_new_invoker (Gimp *gimp,
if (success)
{
if (! gimp_image_is_empty (gimage))
success = (gdisp = gdisplay_new (gimage, scale)) != NULL;
else
success = FALSE;
success = (gdisp = gdisplay_new (gimage, scale)) != NULL;
}
return_args = procedural_db_return_args (&display_new_proc, success);

View File

@ -43,10 +43,7 @@ HELP
vars => [ 'guint scale = 0x101' ],
code => <<'CODE'
{
if (! gimp_image_is_empty (gimage))
success = (gdisp = gdisplay_new (gimage, scale)) != NULL;
else
success = FALSE;
success = (gdisp = gdisplay_new (gimage, scale)) != NULL;
}
CODE
);