https://bugs.freedesktop.org/show_bug.cgi?id=57929

--- Comment #6 from Dan <[email protected]> ---
Thanks to Eike Rathke I was able to start debugging this and found that the
line

>266: sal_uInt16 nResult = aAddr.Parse(aExpr, mpDoc, aDetails);

returns 0 for nResult when external references are used. This causes the if()
statement to evaluate to false and so the reference is never toggled.

Tracing it into the "Parse()" function in address.cxx, it seems to get set at

>1197:  if (!pExtInfo)
>1198:      nRes = 0;

Unfortunately, I'm not sure how the "Parse()" function is supposed to be called
(I can't find any documentation or comments in the code to explain its
purpose), so I can't work out if this is a bug in the ScRefFinder::ToggleRel
portion of the code, or the ScAddress::Parse function.

The value of aExpr that I'm getting when I debug this (at line 262 in
reffind.cxx) is:

>(gdb) print aExpr
>$1 = "'file:///home/dan/Documents/ReferenceTo.ods'#$Sheet1.A1"

which looks like a valid reference to my inexperienced eyes. Can anyone give a
n00b a pointer in the right direction?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to