diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-07-25 15:50:24 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-24 01:00:08 +0200 |
commit | e1718675fd352467165e0f51652cc785462ba98f (patch) | |
tree | ac4cca50b20af3b25faf28c8a023e0cbaf39aca1 | |
parent | ca48f0d903d4cee26434a439ab140f6c1fb63754 (diff) |
Fix missing name for Default Style in AutoFormat dialog
Fixed the missing name for the default style in the AutoFormat dialog.
The String argument of SwStyleNameMapper::GetUIName is not modified
in the method, so the actual return value needs to be used to get the
desired result.
Change-Id: I29b29c11343920dc69a5bc104f65536a26e17d67
-rw-r--r-- | sw/source/core/doc/tblafmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index fc047baab328..2c4bbb8efc5f 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -960,7 +960,7 @@ SwTableAutoFormatTable::SwTableAutoFormatTable(SwDoc* pDoc) OUString 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 ); SwTableFormat* pStyle = pDoc->FindTableFormatByName(sNm); if ( !pStyle ) pStyle = pDoc->MakeTableFrameFormat(sNm, NULL); |