summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-09-03 21:49:03 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-09-03 23:12:15 +0200
commitb3b2c4f1b140b68155891cfbfda9cd2b209f3d7c (patch)
treea215e7081a12a3f320fa45785ec4d5bb85cde3a0 /vcl
parentcf5b61967ef8647db663a1f0d699169b017916a7 (diff)
Assertion when editing pattern field
Change-Id: Ia515382556329feeec359254d3be3f90d2fd17ad Reviewed-on: https://gerrit.libreoffice.org/41870 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index dfcf63126fe1..3712fc004d24 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -368,7 +368,7 @@ static void ImplPatternProcessStrictModify( Edit* pEdit,
OUString aText = pEdit->GetText();
// remove leading blanks
- if ( bSameMask && !(nFormatFlags & PATTERN_FORMAT_EMPTYLITERALS) )
+ if ( bSameMask && !(nFormatFlags & PATTERN_FORMAT_EMPTYLITERALS) && !rEditMask.isEmpty() )
{
sal_Int32 i = 0;
sal_Int32 nMaxLen = aText.getLength();