diff options
Diffstat (limited to 'svx/source/form/datanavi.cxx')
-rw-r--r-- | svx/source/form/datanavi.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 08f3cf88c026..cbee3dfdc90c 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -63,6 +63,7 @@ #include <com/sun/star/xml/dom/DOMException.hpp> #include <com/sun/star/form/binding/XValueBinding.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <rtl/logfile.hxx> using namespace ::com::sun::star::beans; @@ -3116,7 +3117,7 @@ namespace svxform //------------------------------------------------------------------------ IMPL_LINK_NOARG(AddConditionDialog, ResultHdl) { - String sCondition = m_aConditionED.GetText().EraseLeadingChars().EraseTrailingChars(); + String sCondition = comphelper::string::strip(m_aConditionED.GetText(), ' '); String sResult; if ( sCondition.Len() > 0 ) { |