Summary: | calling startEditingAtNode(nodeobject) method of a tree control does nothing | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | LRN <lrn1986> |
Component: | Libreoffice | Assignee: | Caolán McNamara <caolanm> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | 3.4.0 Beta5 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | target:3.7.0 | ||
i915 platform: | i915 features: | ||
Attachments: |
hanya's testcase for tree node editing
hanya's patch to fix tree nore editing |
Description
LRN
2011-05-17 03:20:17 UTC
Created attachment 46796 [details] [review] hanya's patch to fix tree nore editing [This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html Still present in 3.5.0-beta2 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 ? Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=aa3eeb28bcba10d603c15ee850620bed638514f5 Resolves: fdo#37279 and #i78701# startEditingAtNode does nothing Resolved this by indeed basically making UnoTreeListItem inherit from SvLBoxString |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.