diff options
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index f5a5f41bfb1d..2f3b44014762 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -520,14 +520,14 @@ XubString Edit::ImplGetText() const { if ( mcEchoChar || (GetStyle() & WB_PASSWORD) ) { - XubString aText; sal_Unicode cEchoChar; if ( mcEchoChar ) cEchoChar = mcEchoChar; else cEchoChar = '*'; - aText.Fill( maText.Len(), cEchoChar ); - return aText; + rtl::OUStringBuffer aText; + comphelper::string::padToLength(aText, maText.Len(), cEchoChar); + return aText.makeStringAndClear(); } else return maText; |