diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index 6a989cb2f2a5..78d7a5676f44 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -2140,7 +2140,13 @@ OUString& SvxSearchDialog::BuildAttrText_Impl( OUString& rStr, { OUString aStr; rPool.GetPresentation(*rItem.pItem, eMapUnit, aStr, aIntlWrapper); - rStr += aStr; + if (aStr.isEmpty()) + { + if (rStr.endsWith(", ")) + rStr = rStr.copy(0, rStr.lastIndexOf(",")); + } + else + rStr += aStr; } else if ( rItem.nSlot == SID_ATTR_BRUSH_CHAR ) { |