[gimp/metadata-browser] gfig: Remove redundant code (cppcheck report)
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] gfig: Remove redundant code (cppcheck report)
- Date: Thu, 13 Sep 2012 00:40:33 +0000 (UTC)
commit 2ddc751f8a2e5511b9d503f491e2eb8b1d1a7d76
Author: Mukund Sivaraman <muks banu com>
Date: Thu Sep 6 07:25:50 2012 +0530
gfig: Remove redundant code (cppcheck report)
plug-ins/gfig/gfig-preview.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/plug-ins/gfig/gfig-preview.c b/plug-ins/gfig/gfig-preview.c
index 5b349d1..68cc2f6 100644
--- a/plug-ins/gfig/gfig-preview.c
+++ b/plug-ins/gfig/gfig-preview.c
@@ -227,16 +227,7 @@ gfig_preview_events (GtkWidget *widget,
else
{
if (selvals.opts.snap2grid)
- {
- if (bevent->button == 3)
- {
- find_grid_pos (&point, &point, FALSE);
- }
- else
- {
- find_grid_pos (&point, &point, FALSE);
- }
- }
+ find_grid_pos (&point, &point, FALSE);
object_start (&point, bevent->state & GDK_SHIFT_MASK);
gtk_widget_queue_draw (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]