talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d006355369916eefff3d964d4606e183339418aa
parent 0371d85eea01def93d51c6a5f13f0f668cef2391
Author: paul <paul@claws-mail.org>
Date:   Mon,  4 Oct 2021 09:37:45 +0100

fix 'suggest parentheses' warning

Diffstat:
Msrc/image_viewer.c | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -106,8 +106,8 @@ static void image_viewer_load_image(ImageViewer *imageviewer) } #if GDK_PIXBUF_MINOR >= 28 - if (animation && gdk_pixbuf_animation_is_static_image(animation) - || imageviewer->resize_img || imageviewer->fit_img_height) { + if ((animation && gdk_pixbuf_animation_is_static_image(animation)) || + imageviewer->resize_img || imageviewer->fit_img_height) { pixbuf = gdk_pixbuf_animation_get_static_image(animation); g_object_ref(pixbuf); g_object_unref(animation); @@ -118,12 +118,13 @@ static void image_viewer_load_image(ImageViewer *imageviewer) if (imageviewer->resize_img) { gtk_widget_get_allocation(imageviewer->scrolledwin, &allocation); pixbuf = claws_load_pixbuf_fitting(pixbuf, FALSE, - imageviewer->fit_img_height, - allocation.width, - allocation.height); - } - else - pixbuf = claws_load_pixbuf_fitting(pixbuf, FALSE, imageviewer->fit_img_height, -1, -1); + imageviewer->fit_img_height, + allocation.width, + allocation.height); + } else + pixbuf = claws_load_pixbuf_fitting(pixbuf, FALSE, + imageviewer->fit_img_height, + -1, -1); } if (!pixbuf && !animation) {