aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-calendar/src
diff options
context:
space:
mode:
Diffstat (limited to 'cgeo-calendar/src')
-rw-r--r--cgeo-calendar/src/cgeo/calendar/CalendarActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
index 300a630..6ff9450 100644
--- a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
+++ b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
@@ -159,7 +159,7 @@ public final class CalendarActivity extends Activity {
String text = spanned.toString();
final ImageSpan[] spans = spanned.getSpans(0, spanned.length(), ImageSpan.class);
for (int i = spans.length - 1; i >= 0; i--) {
- text = text.substring(0, spanned.getSpanStart(spans[i]) - 1) + text.substring(spanned.getSpanEnd(spans[i]) + 1);
+ text = text.substring(0, spanned.getSpanStart(spans[i])) + text.substring(spanned.getSpanEnd(spans[i]));
}
if (text.length() > 0) {
description.append("\n\n");