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

Ivan Timofeev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #3 from Ivan Timofeev <[email protected]> ---
Caolan, reverting your commit 0741054cb9f58fe6e021fe04fb477f0e56366d9e
"glossary/autotext isn't a toggleable dialog" helps here.

This toolbutton registers as
  SwTbxAutoTextCtrl::RegisterControl(FN_GLOSSARY_DLG, pMod );

SwTbxAutoTextCtrl defined as
  SFX_IMPL_TOOLBOX_CONTROL( SwTbxAutoTextCtrl, SfxBoolItem );

i.e. with *SfxBoolItem*, but FN_GLOSSARY_DLG is
  SfxVoidItem EditGlossary FN_GLOSSARY_DLG

i.e. *SfxVoidItem*

so the following condition in SfxToolBoxControl::CreateControl is false (line
339):
  (rFactories[nFactory]->nTypeId == aSlotType)
therefore it fails to create SwTbxAutoTextCtrl and returns NULL.

So... I wonder if changing FN_GLOSSARY_DLG to SfxBoolItem is a right fix here?

-- 
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