summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-18 18:24:55 +0200
committermonsta <[email protected]>2020-02-13 14:02:15 +0300
commitac964e63be856db9ffa61fa2b9bc578a2bfb77b4 (patch)
tree9dd6cf3090dc23dd04d99243f9cfe66dc2870b85
parent2ce508d333f8a60c045772adb46cfccec660aead (diff)
downloadpluma-ac964e63be856db9ffa61fa2b9bc578a2bfb77b4.tar.bz2
pluma-ac964e63be856db9ffa61fa2b9bc578a2bfb77b4.tar.xz
pluma-print-preview: Fix warning: identical expressions
based in gedit commit: https://gitlab.gnome.org/GNOME/gedit/commit/e30939812fcf884d031757fb3cc2a8383f3ce21f Fixes Clang analyzer warning: pluma-print-preview.c:743:24: warning: identical expressions on both sides of logical operator if (priv->tile_h <= 0 || priv->tile_h <= 0) ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ Fixes cppcheck warning: [pluma/pluma-print-preview.c:743]: (style) Same expression on both sides of '||'.
-rw-r--r--pluma/pluma-print-preview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pluma/pluma-print-preview.c b/pluma/pluma-print-preview.c
index 3f1c6e13..bf8f8c40 100644
--- a/pluma/pluma-print-preview.c
+++ b/pluma/pluma-print-preview.c
@@ -740,7 +740,7 @@ get_page_at_coords (PlumaPrintPreview *preview,
priv = preview->priv;
- if (priv->tile_h <= 0 || priv->tile_h <= 0)
+ if (priv->tile_h <= 0 || priv->tile_w <= 0)
return -1;
hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (priv->layout));