Kaydet (Commit) 2e2c804b authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#43521: Don't shown the name of a reference field if it's empty

üst 456ec763
...@@ -276,10 +276,15 @@ String SwGetRefField::Expand() const ...@@ -276,10 +276,15 @@ String SwGetRefField::Expand() const
String SwGetRefField::GetFieldName() const String SwGetRefField::GetFieldName() const
{ {
String aStr(GetTyp()->GetName()); if ( GetTyp()->GetName().Len() > 0 || sSetRefName.Len() > 0 )
aStr += ' '; {
aStr += sSetRefName; String aStr(GetTyp()->GetName());
return aStr; aStr += ' ';
aStr += sSetRefName;
return aStr;
}
else
return Expand();
} }
// #i81002# - parameter <pFldTxtAttr> added // #i81002# - parameter <pFldTxtAttr> added
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment