summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-29 09:27:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-29 09:27:38 +0100
commitd54b2bd8dcc393bb168386a5c0ec4ce40bb3c6d4 (patch)
treea3e09a63768ec60e2383b4da1fccf67ba4b2453c /svtools
parentf3cbb539e5d8e042432ab2ee9c90a3ad8c9ade5a (diff)
Resolves: fdo#83068 ignore spaces in font-size unit detection
Change-Id: Id9a5c2ee576bd533d8b0a2b4356e319354abbbac
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 10f10495673f..097e73a4b2a4 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -19,6 +19,7 @@
#include <config_folders.h>
+#include <i18nutil/unicode.hxx>
#include <tools/stream.hxx>
#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
@@ -1604,7 +1605,7 @@ void FontSizeBox::Modify()
const sal_Unicode* pStr = aStr.getStr();
while ( *pStr )
{
- if ( ((*pStr < '0') || (*pStr > '9')) && (*pStr != '%') )
+ if ( ((*pStr < '0') || (*pStr > '9')) && (*pStr != '%') && !unicode::isSpace(*pStr) )
{
if ( ('-' == *pStr || '+' == *pStr) && !bPtRelative )
bPtRelative = true;