[gnome-calendar] month-view: fix sigsegv if end_date is not created
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix sigsegv if end_date is not created
- Date: Thu, 18 Dec 2014 14:06:31 +0000 (UTC)
commit d1a7c6ee2433e8fd5e40cb28ab77fa575a03941f
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Dec 12 23:26:54 2014 -0500
month-view: fix sigsegv if end_date is not created
src/gcal-month-view.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index a7a05ba..0b019e3 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1058,14 +1058,14 @@ gcal_month_view_button_release (GtkWidget *widget,
end_date = gcal_dup_icaltime (priv->date);
end_date->day = j - priv->days_delay;
end_date->is_date = 1;
- }
- if (start_date->day > end_date->day)
- {
- gint day;
- day = start_date->day;
- start_date->day = end_date->day;
- end_date->day = day;
+ if (start_date->day > end_date->day)
+ {
+ gint day;
+ day = start_date->day;
+ start_date->day = end_date->day;
+ end_date->day = day;
+ }
}
g_signal_emit_by_name (GCAL_VIEW (widget), "create-event", start_date, end_date, x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]