[Libreoffice-bugs] [Bug 37279] calling startEditingAtNode(nodeobject) method of a tree control does nothing
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue May 8 06:52:54 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=37279
--- Comment #4 from Michael Meeks <michael.meeks at novell.com> 2012-05-08 06:52:54 PDT ---
Just to update the bug; the patch was reviewed on the list a while back, and
doesn't work:
> checks that a tree item is a SV_ITEM_ID_LBOXSTRING and refuses to do
> anything with it otherwise.
Right - it does this because in
svtools/source/uno/treecontrolhelper.cxx:
class UnoTreeListItem : public SvLBoxItem
is not in fact an LBOXSTRING. Quite probably it should be - after all
we have some text.
So - as/when you can compile - I would suggest switching the code to
derive from SvLBoxString, and binning 'maText' in favour of
SvLBoxString's 'aStr' - and also junking the 'IsA' impl. - which should
then make things work for you :-)
> The simplest fix, as proposed in the original bug report, is to make
> UnoTreeListItem::IsA() return SV_ITEM_ID_LBOXSTRING instead of 0.
Yep - unfortunately the code then starts casting it to a 'SvLBoxString'
- which (might) work much of the time due to similar class layout ;-)
but is not a real fix.
Any chance you could look into that ? and/or where are you stuck with
building ?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list