have my own stab at fixing the leaking SmDocShell
i.e. alternatives to5dd1cd72f4
ef66cc105e
f9e981ba0e
d3cf684146
Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829
This commit is contained in:
parent
a645a14cf4
commit
cad9697049
2 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,7 @@ class SmElementsControl : public Control
|
|||
|
||||
public:
|
||||
SmElementsControl(Window *pParent, const ResId& rResId);
|
||||
virtual ~SmElementsControl();
|
||||
|
||||
void setElementSetId(sal_uInt16 aSetId);
|
||||
|
||||
|
|
|
@ -178,6 +178,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId) :
|
|||
maFormat.SetBaseSize(PixelToLogic(Size(0, 24)));
|
||||
}
|
||||
|
||||
SmElementsControl::~SmElementsControl()
|
||||
{
|
||||
mpDocShell->DoClose();
|
||||
}
|
||||
|
||||
void SmElementsControl::setVerticalMode(bool bVerticalMode)
|
||||
{
|
||||
mbVerticalMode = bVerticalMode;
|
||||
|
|
Loading…
Reference in a new issue