[gimp] gfig: Remove redundant code (cppcheck report)
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] gfig: Remove redundant code (cppcheck report)
- Date: Thu, 6 Sep 2012 02:01:45 +0000 (UTC)
commit b3d0ec400e5f65a62b34525e61015a29098d3a6c
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]