diff options
Diffstat (limited to 'sw/source/filter/html/css1atr.cxx')
-rw-r--r-- | sw/source/filter/html/css1atr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx index 8c8032ddc128..636e228b19c8 100644 --- a/sw/source/filter/html/css1atr.cxx +++ b/sw/source/filter/html/css1atr.cxx @@ -77,6 +77,7 @@ // FOOTNOTES #include "doc.hxx" #include <IDocumentSettingAccess.hxx> +#include <IDocumentLayoutAccess.hxx> #include "swerror.h" #include "charatr.hxx" #include "paratr.hxx" @@ -2250,8 +2251,7 @@ void SwHTMLWriter::OutCSS1_FrmFmtBackground( const SwFrmFmt& rFrmFmt ) if( pDoc->getIDocumentSettingAccess().get(IDocumentSettingAccess::HTML_MODE) || pDoc->getIDocumentSettingAccess().get(IDocumentSettingAccess::BROWSE_MODE)) { - SwViewShell *pVSh = 0; - pDoc->GetEditShell( &pVSh ); + SwViewShell *pVSh = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); if ( pVSh && COL_TRANSPARENT != pVSh->GetViewOptions()->GetRetoucheColor().GetColor()) aColor = pVSh->GetViewOptions()->GetRetoucheColor().GetColor(); |