[gimp] app: minor cleanup and fixes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: minor cleanup and fixes
- Date: Sun, 19 Sep 2010 21:46:29 +0000 (UTC)
commit f17cc0093d6ab50e5648ab4b08ee204e58cb84e1
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 19 23:46:06 2010 +0200
app: minor cleanup and fixes
app/display/gimpcanvasitem.c | 3 +++
app/display/gimpcanvasrectangle.c | 6 ++++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpcanvasitem.c b/app/display/gimpcanvasitem.c
index 019eb29..9f96f9c 100644
--- a/app/display/gimpcanvasitem.c
+++ b/app/display/gimpcanvasitem.c
@@ -1,6 +1,9 @@
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
+ * gimpcanvasitem.c
+ * Copyright (C) 2010 Michael Natterer <mitch gimp org>
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
diff --git a/app/display/gimpcanvasrectangle.c b/app/display/gimpcanvasrectangle.c
index a77f700..6c66a8b 100644
--- a/app/display/gimpcanvasrectangle.c
+++ b/app/display/gimpcanvasrectangle.c
@@ -1,6 +1,9 @@
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
+ * gimpcanvasrectangle.c
+ * Copyright (C) 2010 Michael Natterer <mitch gimp org>
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
@@ -27,7 +30,6 @@
#include "gimpcanvasrectangle.h"
#include "gimpdisplayshell.h"
-#include "gimpdisplayshell-expose.h"
#include "gimpdisplayshell-transform.h"
@@ -231,7 +233,7 @@ gimp_canvas_rectangle_transform (GimpCanvasItem *item,
else
{
*x = PROJ_ROUND (*x) + 0.5;
- *y = PROJ_ROUND (*x) + 0.5;
+ *y = PROJ_ROUND (*y) + 0.5;
*w = PROJ_ROUND (*w) - 1.0;
*h = PROJ_ROUND (*h) - 1.0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]