summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/passwd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/passwd.cxx')
-rw-r--r--svx/source/dialog/passwd.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/dialog/passwd.cxx b/svx/source/dialog/passwd.cxx
index ac3be2c794a5..5773bb38bbe7 100644
--- a/svx/source/dialog/passwd.cxx
+++ b/svx/source/dialog/passwd.cxx
@@ -26,6 +26,7 @@
*
************************************************************************/
+#include <comphelper/string.hxx>
#include <tools/shl.hxx>
#include <vcl/msgbox.hxx>
@@ -73,9 +74,7 @@ IMPL_LINK_NOARG(SvxPasswordDialog, EditModifyHdl)
{
if ( !bEmpty )
{
- String aPasswd = aRepeatPasswdED.GetText();
- aPasswd.EraseLeadingChars().EraseTrailingChars();
-
+ String aPasswd = comphelper::string::strip(aRepeatPasswdED.GetText(), ' ');
if ( !aPasswd.Len() && aOKBtn.IsEnabled() )
aOKBtn.Disable();
else if ( aPasswd.Len() && !aOKBtn.IsEnabled() )