summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-18 18:24:55 +0200
committerZenWalker <[email protected]>2019-06-21 17:39:57 +0200
commit670372615b0ffcd6aef09892e5df134580c3282c (patch)
treee840d96aefe7d3bb51f548bd3636ab63b26e3bae
parentfad391d7cd59138991583b8a199096225786ea29 (diff)
downloadpluma-670372615b0ffcd6aef09892e5df134580c3282c.tar.bz2
pluma-670372615b0ffcd6aef09892e5df134580c3282c.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));