diff options
author | Xiaofei Zhang <Zhangxiaofei@openoffice.org> | 2010-11-10 13:50:33 +0800 |
---|---|---|
committer | Xiaofei Zhang <Zhangxiaofei@openoffice.org> | 2010-11-10 13:50:33 +0800 |
commit | 7d50c96df2b3efdbd7844a379f4f9c7f6bb1051c (patch) | |
tree | 537d24a05b60b4a779531e3286fdc330f2d5f0e0 /sc/source/ui/view/dbfunc3.cxx | |
parent | 1d1b3baf8942031e2f1a7189ed121b32188f82fb (diff) | |
parent | 8f45f8b701ad4e5d93c57ddd5669ae1befad6133 (diff) |
removetooltypes01: #i112600# resync to DEV300_m92; remove tooltypes from xmloff, linguistic, vcl, svtools, accessibility, fpicker, uui and framework
Diffstat (limited to 'sc/source/ui/view/dbfunc3.cxx')
-rw-r--r--[-rwxr-xr-x] | sc/source/ui/view/dbfunc3.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index 35befa8f7a36..dbdeae1ae0b1 100755..100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -694,6 +694,9 @@ ULONG RefreshDPObject( ScDPObject *pDPObj, ScDocument *pDoc, ScDocShell *pDocSh, if( !pDPObj ) return STR_PIVOT_NOTFOUND; + if ( pDocSh && !pDoc ) + pDoc = pDocSh->GetDocument(); + if( !pDoc ) return static_cast<ULONG>(-1); |