diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-14 09:14:35 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-14 15:21:36 +0200 |
commit | a233a98a90b81ea12e050a77aa4ccbfe5457ab7e (patch) | |
tree | 958b7fc7fbe45ca3f442d2ce9a316119c8465fb1 /sc | |
parent | hide progress bar even if loading failed (diff) | |
download | core-a233a98a90b81ea12e050a77aa4ccbfe5457ab7e.tar.gz core-a233a98a90b81ea12e050a77aa4ccbfe5457ab7e.zip |
no need to use ScDocFunc here, ScDocument is the better choice
Change-Id: I280e5ab08949415a8179f803177d280540ba0650
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index 0c9cc37d1707..719f3a5d1c43 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -56,7 +56,6 @@ #include "colorscale.hxx" #include "document.hxx" #include "convuno.hxx" -#include "docsh.hxx" #include "docfunc.hxx" #include "markdata.hxx" #include "docpool.hxx" @@ -725,10 +724,9 @@ void CondFormatRule::finalizeImport( const Reference< XSheetConditionalEntries > ScUnoConversion::FillScRange(aRange, *itr); ScPatternAttr aPattern( rDoc.GetPool() ); aPattern.GetItemSet().Put( SfxUInt32Item( ATTR_COLORSCALE, nIndex ) ); - ScDocShell* pShell = static_cast<ScDocShell*>(rDoc.GetDocumentShell()); ScMarkData aMarkData; aMarkData.SetMarkArea(aRange); - pShell->GetDocFunc().ApplyAttributes( aMarkData, aPattern, sal_True, sal_True ); + rDoc.ApplySelectionPattern( aPattern , aMarkData); aList.Append(aRange); } |