diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-07-29 19:17:21 +0300 |
---|---|---|
committer | Alex Ivan <alexnivan@yahoo.com> | 2013-07-29 19:17:21 +0300 |
commit | 673df31f09fb7a8e52e836ca514d07c6ef10647b (patch) | |
tree | bcf900975d4c41f79f563940c9be04f0728e6eca | |
parent | 1658441f88b267f6e2ba0344066bbddca444ecc4 (diff) |
Fix resizing of AutoFormat window crashing
An incorrect modification of the pointer to the currently
selected style caused a crash if a resize of the respective
window was attempted.
Change-Id: Ibb66f1256268820db5440871c30a9697a0634f87
-rw-r--r-- | sw/source/ui/table/tautofmt.cxx | 4 |
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 ); } |