summaryrefslogtreecommitdiff
path: root/forms/source/component/Filter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/Filter.cxx')
-rw-r--r--forms/source/component/Filter.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index d15df8535313..99f43e25d2c2 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <string_view>
+
#include "Filter.hxx"
#include <FormComponent.hxx>
#include <strings.hrc>
@@ -307,7 +311,7 @@ namespace frm
// To fix this, we would probably have to revert here to always return "1" or "0" as normalized
// filter, and change our client code to properly translate this (which could be some effort).
if ( nMarkerPos == 0 )
- aText.appendCopy( sText, sExpressionMarker.getLength() );
+ aText.append( std::u16string_view(sText).substr(sExpressionMarker.getLength()) );
else
{
// fallback