fpspreadsheet: Fix handling of hyperlinks with spaces in the bookmark (sheet name).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8604 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-11-10 19:23:23 +00:00
parent d2467e166d
commit eb0d7767fb
2 changed files with 23 additions and 2 deletions

View File

@@ -960,7 +960,9 @@ begin
Result := ParseCellString(AStr, ACellRow, ACellCol);
ASheetName := '';
end else begin
ASheetName := UTF8Copy(AStr, 1, p-1);
ASheetName := Copy(AStr, 1, p-1);
if (ASheetName[1] = '''') and (ASheetName[Length(ASheetName)] = '''') then
ASheetName := Copy(ASheetName, 2, Length(ASheetName)-2);
Result := ParseCellString(Copy(AStr, p+1, Length(AStr)), ACellRow, ACellCol);
end;
end;