mirror of https://github.com/GNOME/gimp.git
fixed sense of assertions; argh.
2003-05-19 Sven Neumann <sven@gimp.org> * app/base/temp-buf.c (temp_buf_to_color) (temp_buf_to_gray): fixed sense of assertions; argh.
This commit is contained in:
parent
9453d69cfb
commit
48b3b263fe
|
@ -1,3 +1,8 @@
|
|||
2003-05-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/temp-buf.c (temp_buf_to_color) (temp_buf_to_gray):
|
||||
fixed sense of assertions; argh.
|
||||
|
||||
2003-05-19 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimpcolor/gimpcolorspace.c (gimp_hsl_to_rgb): fixed to work
|
||||
|
|
|
@ -85,7 +85,7 @@ temp_buf_to_color (TempBuf *src_buf,
|
|||
switch (dest_buf->bytes)
|
||||
{
|
||||
case 3:
|
||||
g_return_if_fail (src_buf->bytes != 1);
|
||||
g_return_if_fail (src_buf->bytes == 1);
|
||||
while (num_pixels--)
|
||||
{
|
||||
guchar tmpch;
|
||||
|
@ -96,7 +96,7 @@ temp_buf_to_color (TempBuf *src_buf,
|
|||
break;
|
||||
|
||||
case 4:
|
||||
g_return_if_fail (src_buf->bytes != 2);
|
||||
g_return_if_fail (src_buf->bytes == 2);
|
||||
while (num_pixels--)
|
||||
{
|
||||
guchar tmpch;
|
||||
|
@ -131,7 +131,7 @@ temp_buf_to_gray (TempBuf *src_buf,
|
|||
switch (dest_buf->bytes)
|
||||
{
|
||||
case 1:
|
||||
g_return_if_fail (src_buf->bytes != 3);
|
||||
g_return_if_fail (src_buf->bytes == 3);
|
||||
while (num_pixels--)
|
||||
{
|
||||
pix = INTENSITY (src[0], src[1], src[2]);
|
||||
|
@ -142,7 +142,7 @@ temp_buf_to_gray (TempBuf *src_buf,
|
|||
break;
|
||||
|
||||
case 2:
|
||||
g_return_if_fail (src_buf->bytes != 4);
|
||||
g_return_if_fail (src_buf->bytes == 4);
|
||||
while (num_pixels--)
|
||||
{
|
||||
pix = INTENSITY (src[0], src[1], src[2]);
|
||||
|
|
Loading…
Reference in New Issue