Resolves: tdf#91542 crash on pressing return in sidebar line popup
Change-Id: I661a51f84827326dfc33a11a02f8065d68e8333a
This commit is contained in:
@@ -75,6 +75,8 @@ public :
|
|||||||
*/
|
*/
|
||||||
void SetPopupModeEndHandler (const ::boost::function<void()>& rCallback);
|
void SetPopupModeEndHandler (const ::boost::function<void()>& rCallback);
|
||||||
|
|
||||||
|
void dispose();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
VclPtr<PopupControl> mxControl;
|
VclPtr<PopupControl> mxControl;
|
||||||
|
|
||||||
|
@@ -213,6 +213,7 @@ void LinePropertyPanel::dispose()
|
|||||||
mpFTCapStyle.clear();
|
mpFTCapStyle.clear();
|
||||||
mpLBCapStyle.clear();
|
mpLBCapStyle.clear();
|
||||||
|
|
||||||
|
maLineWidthPopup.dispose();
|
||||||
maStyleControl.dispose();
|
maStyleControl.dispose();
|
||||||
maDashControl.dispose();
|
maDashControl.dispose();
|
||||||
maWidthControl.dispose();
|
maWidthControl.dispose();
|
||||||
|
@@ -40,12 +40,17 @@ Popup::Popup (
|
|||||||
OSL_ASSERT(maControlCreator);
|
OSL_ASSERT(maControlCreator);
|
||||||
}
|
}
|
||||||
|
|
||||||
Popup::~Popup()
|
void Popup::dispose()
|
||||||
{
|
{
|
||||||
mxControl.disposeAndClear();
|
mxControl.disposeAndClear();
|
||||||
mxContainer.disposeAndClear();
|
mxContainer.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Popup::~Popup()
|
||||||
|
{
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
|
||||||
void Popup::Show (ToolBox& rToolBox)
|
void Popup::Show (ToolBox& rToolBox)
|
||||||
{
|
{
|
||||||
rToolBox.SetItemDown(rToolBox.GetCurItemId(), true);
|
rToolBox.SetItemDown(rToolBox.GetCurItemId(), true);
|
||||||
|
Reference in New Issue
Block a user