summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/preview.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-04-02 16:50:15 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-04-02 20:22:40 +0100
commit0e0e3caf382f793481b638417540d05c1d1ed24a (patch)
tree4cf268f5dd5b0e44cf49c32681af11033ec33246 /sc/source/ui/view/preview.cxx
parentf834d986d5a1e7e66f4029476d058fbf5f63d8d1 (diff)
Don't instantiate ScDocFunc objects, get them from the doc-shell
Diffstat (limited to 'sc/source/ui/view/preview.cxx')
-rw-r--r--sc/source/ui/view/preview.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 8c479b1f7cf1..bbb7c72c5128 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -1233,7 +1233,6 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
if( bMoveRulerAction )
{
long nNewColWidth = 0;
- ScDocFunc aFunc(*pDocShell);
SCCOLROW nCols[2] = { nColNumberButttonDown, nColNumberButttonDown };
if( !bLayoutRTL )
@@ -1250,7 +1249,9 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
if( nNewColWidth >= 0 )
{
- aFunc.SetWidthOrHeight( true, 1,nCols, nTab, SC_SIZE_DIRECT, (sal_uInt16)nNewColWidth, true, true);
+ pDocShell->GetDocFunc().SetWidthOrHeight(
+ true, 1,nCols, nTab, SC_SIZE_DIRECT,
+ (sal_uInt16)nNewColWidth, true, true);
pDocShell->SetModified(true);
}
if ( ValidTab( nTab ) )