summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-07-03 21:34:26 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-07-03 21:36:58 +0200
commitc63b74d22d360893bb9e1200f59099ffb7943705 (patch)
tree152c796366ec78d976cd6298d2d27585254758cf /reportdesign
parente6aabd119c67f73699f7ba33099bdecd78fe18c9 (diff)
fdo#61725 add SolarMutex until it works
Change-Id: I757bbfbc4a548f17d797ac00197588bc6e2907f6
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/sdr/RptModel.cxx2
-rw-r--r--reportdesign/source/ui/dlg/AddField.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx
index 9553291b1127..640018bb7b70 100644
--- a/reportdesign/source/core/sdr/RptModel.cxx
+++ b/reportdesign/source/core/sdr/RptModel.cxx
@@ -22,6 +22,7 @@
#include <dbaccess/dbsubcomponentcontroller.hxx>
#include <tools/debug.hxx>
#include <unotools/pathoptions.hxx>
+#include <vcl/svapp.hxx>
#include "UndoActions.hxx"
#include "UndoEnv.hxx"
@@ -111,6 +112,7 @@ SdrPage* OReportModel::RemovePage(sal_uInt16 nPgNum)
// -----------------------------------------------------------------------------
OReportPage* OReportModel::createNewPage(const uno::Reference< report::XSection >& _xSection)
{
+ SolarMutexGuard aSolarGuard;
OReportPage* pPage = new OReportPage( *this ,_xSection);
InsertPage(pPage);
m_pUndoEnv->AddSection(_xSection);
diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx
index d849d0182ec7..bee9548ee4d2 100644
--- a/reportdesign/source/ui/dlg/AddField.cxx
+++ b/reportdesign/source/ui/dlg/AddField.cxx
@@ -305,6 +305,8 @@ namespace
//-----------------------------------------------------------------------
void OAddFieldWindow::Update()
{
+ SolarMutexGuard aSolarGuard;
+
if ( m_pContainerListener.is() )
m_pContainerListener->dispose();
m_pContainerListener = NULL;