summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index d706f5e5b8cd..b4bd909015c1 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -869,6 +869,8 @@ SvtOptionsDrawinglayer::~SvtOptionsDrawinglayer()
// we must destroy our static data container!
if( m_nRefCount <= 0 )
{
+ if (m_pDataContainer->IsModified())
+ m_pDataContainer->Commit();
delete m_pDataContainer;
m_pDataContainer = NULL;
}