[anjal] Fix a crash in DnD
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Fix a crash in DnD
- Date: Wed, 24 Jun 2009 05:15:42 +0000 (UTC)
commit f34e94680f62c5f9309691a3b26cde611acc4022
Author: Srinivasa Ragavan <sragavan novell com>
Date: Wed Jun 24 08:20:26 2009 +0530
Fix a crash in DnD
src/mail-decoration.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mail-decoration.c b/src/mail-decoration.c
index 19f86e5..210f4e9 100644
--- a/src/mail-decoration.c
+++ b/src/mail-decoration.c
@@ -82,7 +82,7 @@ md_translate_position (GdkWindow *w, double ex, double ey, int *x, int *y, GtkWi
*x = (int)ex;
*y = (int)ey;
- while (w != window->window) {
+ while (w && w != window->window) {
int cx, cy, cw, ch, cd;
gdk_window_get_geometry (w, &cx, &cy, &cw, &ch, &cd);
*x += cx;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]