summaryrefslogtreecommitdiff
path: root/vcl/source/control/field2.cxx
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2020-09-25 12:28:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2020-09-26 12:50:49 +0200
commit25e7a5923edc507a2511dc17e3c238cd0f37e642 (patch)
treead0ffb0dc91902e705097dda2a5a25b8cd02bfda /vcl/source/control/field2.cxx
parente8059e707012c8352f7349c4ebf46b56e01c4b4f (diff)
Fix typo in code
It passed "make check" on Linux Change-Id: I5bc56a0dea4a157b276a59bd1050b08120b948ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103455 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r--vcl/source/control/field2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index fc81066ef0f6..8df442fff60b 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2796,8 +2796,8 @@ tools::Time TimeFormatter::GetTime() const
if ( GetField() )
{
- bool bAllowMailformed = ImplAllowMalformedInput();
- if ( TextToTime( GetField()->GetText(), aTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper(), !bAllowMailformed ) )
+ bool bAllowMalformed = ImplAllowMalformedInput();
+ if ( TextToTime( GetField()->GetText(), aTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper(), !bAllowMalformed ) )
{
if ( aTime > GetMax() )
aTime = GetMax();
@@ -2806,7 +2806,7 @@ tools::Time TimeFormatter::GetTime() const
}
else
{
- if ( bAllowMailformed )
+ if ( bAllowMalformed )
aTime = tools::Time( 99, 99, 99 ); // set invalid time
else
aTime = maLastTime;