[gimp] Fix GimpCoords' default initializer
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Fix GimpCoords' default initializer
- Date: Sun, 31 Jan 2010 13:31:59 +0000 (UTC)
commit 98818f91cfb4e934214fb9e3c6f3b023c883212e
Author: Michael Natterer <mitch gimp org>
Date: Sun Jan 31 14:30:08 2010 +0100
Fix GimpCoords' default initializer
Add #define GIMP_COORDS_DEFAULT_DIRECTION and include it in
GIMP_COORDS_DEFAULT_VALUES so coords using it are not partly
uninitialized.
app/core/core-types.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/core/core-types.h b/app/core/core-types.h
index 45a1d64..ae01983 100644
--- a/app/core/core-types.h
+++ b/app/core/core-types.h
@@ -46,12 +46,15 @@
#define GIMP_COORDS_DEFAULT_VELOCITY 0.0
+#define GIMP_COORDS_DEFAULT_DIRECTION 0.0
+
#define GIMP_COORDS_DEFAULT_VALUES { 0.0, 0.0, \
GIMP_COORDS_DEFAULT_PRESSURE, \
GIMP_COORDS_DEFAULT_TILT, \
GIMP_COORDS_DEFAULT_TILT, \
GIMP_COORDS_DEFAULT_WHEEL, \
- GIMP_COORDS_DEFAULT_VELOCITY }
+ GIMP_COORDS_DEFAULT_VELOCITY, \
+ GIMP_COORDS_DEFAULT_DIRECTION }
/* base classes */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]