aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-datetime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 5c5f6fd..5bf20e9 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -808,6 +808,9 @@ guess_label_size (IndicatorDatetime * self)
gint * max_width = &(self->priv->max_width);
gint posibilitymask = generate_strftime_bitmask(self->priv->time_string);
+ /* Reset max width */
+ *max_width = 0;
+
/* Build the array of possibilities that we want to test */
GArray * timevals = g_array_new(FALSE, TRUE, sizeof(struct tm));
build_timeval_array(timevals, posibilitymask);