[gimp] Bug 795611 - unit-editor.c: Boolean result is used in bitwise operation
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 795611 - unit-editor.c: Boolean result is used in bitwise operation
- Date: Sat, 28 Apr 2018 00:49:43 +0000 (UTC)
commit 710ac0fb526ae32d3d86b9d8f3a837d85e38e6b1
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 28 02:48:56 2018 +0200
Bug 795611 - unit-editor.c: Boolean result is used in bitwise operation
Fix "or" expression: it's || not |.
plug-ins/common/unit-editor.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/unit-editor.c b/plug-ins/common/unit-editor.c
index 34c1eb1..0c5298e 100644
--- a/plug-ins/common/unit-editor.c
+++ b/plug-ins/common/unit-editor.c
@@ -338,11 +338,11 @@ new_unit_dialog (GtkWidget *main_dialog,
singular = g_strstrip (singular);
plural = g_strstrip (plural);
- if (!strlen (identifier) |
- !strlen (symbol) |
- !strlen (abbreviation) |
- !strlen (singular) |
- !strlen (plural))
+ if (! strlen (identifier) ||
+ ! strlen (symbol) ||
+ ! strlen (abbreviation) ||
+ ! strlen (singular) ||
+ ! strlen (plural))
{
GtkWidget *msg = gtk_message_dialog_new (GTK_WINDOW (dialog), 0,
GTK_MESSAGE_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]