From a233a98a90b81ea12e050a77aa4ccbfe5457ab7e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 14 May 2012 09:14:35 +0200 Subject: no need to use ScDocFunc here, ScDocument is the better choice Change-Id: I280e5ab08949415a8179f803177d280540ba0650 --- sc/source/filter/oox/condformatbuffer.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sc') 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(rDoc.GetDocumentShell()); ScMarkData aMarkData; aMarkData.SetMarkArea(aRange); - pShell->GetDocFunc().ApplyAttributes( aMarkData, aPattern, sal_True, sal_True ); + rDoc.ApplySelectionPattern( aPattern , aMarkData); aList.Append(aRange); } -- cgit