mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-23 07:12:42 +00:00
oc-calendar: Retrieve properly event description created on SOGo
As it is stored as plain text without triming string. The correct comparison here is NSNotFound as stated in Apple documentation.
This commit is contained in:
committed by
Julio García
parent
445a1fb2d6
commit
415fb6034e
@@ -1231,7 +1231,7 @@ static NSCharacterSet *hexCharacterSet = nil;
|
||||
/* Avoiding those trail weird characters at event description */
|
||||
range = [stringValue rangeOfString: trimingString
|
||||
options: NSBackwardsSearch];
|
||||
if (range.location > 0)
|
||||
if (range.location != NSNotFound)
|
||||
{
|
||||
stringValue = [stringValue substringToIndex: (NSMaxRange(range) -1)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user