summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ivan <alexnivan@yahoo.com>2013-07-25 15:50:24 +0300
committerAlex Ivan <alexnivan@yahoo.com>2013-07-25 15:50:24 +0300
commitae14aebb0cf0e536fd4b55bd74ddf5c43838b67f (patch)
treee085021b1c4d446bae86c3efe0b93c757005bdfe
parent4887943a2c33475640d1dfed7c2d249e463f714f (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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 3792f1b257f4..ef80167f12d6 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -964,7 +964,7 @@ SwTableAutoFmtTbl::SwTableAutoFmtTbl(SwDoc* pDoc)
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 = pDoc->FindTblFmtByName(sNm);
if ( !pStyle )
pStyle = pDoc->MakeTblFrmFmt(sNm, NULL);