[Libreoffice-bugs] [Bug 57308] Basic IDE: watching of variable not working if variable is returning value of function

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 7 17:25:09 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=57308

Andreas Heinisch <andreas.heinisch at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andreas.heinisch at yahoo.de

--- Comment #11 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
The problem is that if you watch a method/variable, LO tries to retrieve the
value of the that variable, which is not yet fully computed. Hence, the watch
window always shows out of scope.

However, I tried to add:
else if (SbxMethod const* pMeth = dynamic_cast<SbxMethod*>(pSBX))
{
    const SbxValues& pVals = pMeth->GetValues_Impl();
    double test = pVals.nDouble;
    aTypeStr += getBasicTypeName(pMeth->GetType());
}

but the test value in this example are always empty.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210407/2e840ed4/attachment.htm>


More information about the Libreoffice-bugs mailing list