summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-07-01 23:43:33 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:40:19 +0200
commitebca55e2593c7ea14c361a75596424fd0c1d2fda (patch)
tree9e2163e20dc27a9bde80bdd65ab2bf84c2d5e306
parenttubes: make TeleManager::startGroupSession work and use it (diff)
downloadcore-ebca55e2593c7ea14c361a75596424fd0c1d2fda.tar.gz
core-ebca55e2593c7ea14c361a75596424fd0c1d2fda.zip
tubes: correctly set pDocFunc
-rw-r--r--sc/source/ui/collab/contacts.cxx2
-rw-r--r--sc/source/ui/inc/docsh.hxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx
index bfc771055ad0..078bcdd4c3ec 100644
--- a/sc/source/ui/collab/contacts.cxx
+++ b/sc/source/ui/collab/contacts.cxx
@@ -74,7 +74,7 @@ class TubeContacts : public ModelessDialog
boost::shared_ptr<ScDocFuncDirect> pDirect( new ScDocFuncDirect( *pScDocShell ) );
boost::shared_ptr<ScDocFuncRecv> pReceiver( new ScDocFuncRecv( pDirect ) );
pSender = new ScDocFuncSend( *pScDocShell, pReceiver );
- pDocFunc = pSender;
+ pScDocShell->SetDocFunc( pSender );
}
// This is a hack to work around:
// `error registering client handler: Name
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 3971e5edc19e..dc551022d13c 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -240,6 +240,7 @@ public:
ScDocument* GetDocument() { return &aDocument; }
ScDocFunc& GetDocFunc() { return *pDocFunc; }
+ void SetDocFunc( ScDocFunc *pDF ) { pDocFunc = pDF; }
SfxPrinter* GetPrinter( sal_Bool bCreateIfNotExist = sal_True );
sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL );