summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/table/tautofmt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
index bdb2478e64f3..eb92dc2e0414 100644
--- a/sw/source/ui/table/tautofmt.cxx
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -478,7 +478,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, SelFmtHdl)
String sNm;
// FIXME Yuk! we are creating the table styles ATM, but in the targetted
// ideal, the table styles are created with the document
- SwStyleNameMapper::GetUIName( RES_POOLCOLL_STANDARD, sNm );
+ sNm = SwStyleNameMapper::GetUIName( RES_POOLCOLL_STANDARD, sNm );
SwTableFmt* pStyle = pShell->GetDoc()->FindTblFmtByName(sNm);
if ( !pStyle )
pStyle = pShell->GetDoc()->MakeTblFrmFmt(sNm, NULL);
@@ -491,7 +491,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, SelFmtHdl)
aTmp.SetWidthHeight( sal_False );
if( nOldIdx != nIndex )
- m_pWndPreview->NotifyChange( aTmp );
+ m_pWndPreview->NotifyChange( *(SwTableAutoFmt*)0 );
UpdateChecks( aTmp, sal_False );
}