[gedit] Fix a typo in get_page_at_coords() [cppcheck]
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix a typo in get_page_at_coords() [cppcheck]
- Date: Thu, 20 Nov 2014 12:29:44 +0000 (UTC)
commit e30939812fcf884d031757fb3cc2a8383f3ce21f
Author: Boris Egorov <egorov linux com>
Date: Thu Nov 20 10:46:27 2014 +0600
Fix a typo in get_page_at_coords() [cppcheck]
Both height and width of a tile must be positive.
Issue detected by cppcheck.
Signed-off-by: Boris Egorov <egorov linux com>
https://bugzilla.gnome.org/show_bug.cgi?id=740382
gedit/gedit-print-preview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-print-preview.c b/gedit/gedit-print-preview.c
index 24f72ff..b4cf576 100644
--- a/gedit/gedit-print-preview.c
+++ b/gedit/gedit-print-preview.c
@@ -567,7 +567,7 @@ get_page_at_coords (GeditPrintPreview *preview,
priv = preview->priv;
- if (priv->tile_h <= 0 || priv->tile_h <= 0)
+ if (priv->tile_h <= 0 || priv->tile_w <= 0)
return -1;
get_adjustments (preview, &hadj, &vadj);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]